mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
[PATCH] x86/x86_64: mark rodata section read-only: x86-64 support
x86-64 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> Cc: Andi Kleen <ak@muc.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
c728252c7a
commit
67df197b1a
3 changed files with 37 additions and 0 deletions
|
|
@ -27,4 +27,8 @@ void global_flush_tlb(void);
|
|||
int change_page_attr(struct page *page, int numpages, pgprot_t prot);
|
||||
int change_page_attr_addr(unsigned long addr, int numpages, pgprot_t prot);
|
||||
|
||||
#ifdef CONFIG_DEBUG_RODATA
|
||||
void mark_rodata_ro(void);
|
||||
#endif
|
||||
|
||||
#endif /* _X8664_CACHEFLUSH_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue