diff options
author | Arjan van de Ven <arjan@infradead.org> | 2006-01-06 03:12:02 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-06 11:33:36 -0500 |
commit | 63aaf3086baea7b94c218053af8237f9dbac5d05 (patch) | |
tree | dc32bf8878d01a25a321eb6412f27bce7ec7c5b7 /include/asm-i386 | |
parent | 37b73c828185731f6236a6387c02d7b08c150810 (diff) |
[PATCH] x86/x86_64: mark rodata section read only: x86 parts
x86 specific parts to make the .rodata section read only
Signed-off-by: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-i386')
-rw-r--r-- | include/asm-i386/cacheflush.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-i386/cacheflush.h b/include/asm-i386/cacheflush.h index 2ea36dea37d9..7199f7b326f1 100644 --- a/include/asm-i386/cacheflush.h +++ b/include/asm-i386/cacheflush.h | |||
@@ -31,4 +31,8 @@ int change_page_attr(struct page *page, int numpages, pgprot_t prot); | |||
31 | void kernel_map_pages(struct page *page, int numpages, int enable); | 31 | void kernel_map_pages(struct page *page, int numpages, int enable); |
32 | #endif | 32 | #endif |
33 | 33 | ||
34 | #ifdef CONFIG_DEBUG_RODATA | ||
35 | void mark_rodata_ro(void); | ||
36 | #endif | ||
37 | |||
34 | #endif /* _I386_CACHEFLUSH_H */ | 38 | #endif /* _I386_CACHEFLUSH_H */ |