Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83705
b: refs/heads/master
c: cc842b8
h: refs/heads/master
i:
  83703: 9531333
v: v3
  • Loading branch information
Arjan van de Ven authored and Ingo Molnar committed Feb 6, 2008
1 parent efb5d3b commit a121d2d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 984bb80d94d891592ab16d4d129b988792752c7b
refs/heads/master: cc842b82cc513ebc78bef6eeaacb5f6335851bcb
3 changes: 0 additions & 3 deletions trunk/arch/x86/mm/pageattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@ static inline pgprot_t static_protections(pgprot_t prot, unsigned long address)
if (within(address, virt_to_highmap(_text), virt_to_highmap(_etext)))
pgprot_val(forbidden) |= _PAGE_NX;


#ifdef CONFIG_DEBUG_RODATA
/* The .rodata section needs to be read-only */
if (within(address, (unsigned long)__start_rodata,
(unsigned long)__end_rodata))
Expand All @@ -179,7 +177,6 @@ static inline pgprot_t static_protections(pgprot_t prot, unsigned long address)
if (within(address, virt_to_highmap(__start_rodata),
virt_to_highmap(__end_rodata)))
pgprot_val(forbidden) |= _PAGE_RW;
#endif

prot = __pgprot(pgprot_val(prot) & ~pgprot_val(forbidden));

Expand Down

0 comments on commit a121d2d

Please sign in to comment.