import PULS_20160108
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / arm / include / asm / rodata.h
1 /*
2 * arch/arm/include/asm/rodata.h
3 *
4 * Copyright (C) 2011 Google, Inc.
5 *
6 * Author: Colin Cross <ccross@android.com>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 */
12 #ifndef _ASMARM_RODATA_H
13 #define _ASMARM_RODATA_H
14
15 #ifndef __ASSEMBLY__
16
17 #ifdef CONFIG_DEBUG_RODATA
18
19 int set_memory_rw(unsigned long virt, int numpages);
20 int set_memory_ro(unsigned long virt, int numpages);
21
22 void mark_rodata_ro(void);
23 void set_kernel_text_rw(void);
24 void set_kernel_text_ro(void);
25 #else
26 static inline void set_kernel_text_rw(void) { }
27 static inline void set_kernel_text_ro(void) { }
28 #endif
29
30 #endif
31
32 #endif