2 * Copyright (C) 1999-2002 Russell King
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
9 #ifndef _ASMARM_SET_MEMORY_H
10 #define _ASMARM_SET_MEMORY_H
13 int set_memory_ro(unsigned long addr
, int numpages
);
14 int set_memory_rw(unsigned long addr
, int numpages
);
15 int set_memory_x(unsigned long addr
, int numpages
);
16 int set_memory_nx(unsigned long addr
, int numpages
);
18 static inline int set_memory_ro(unsigned long addr
, int numpages
) { return 0; }
19 static inline int set_memory_rw(unsigned long addr
, int numpages
) { return 0; }
20 static inline int set_memory_x(unsigned long addr
, int numpages
) { return 0; }
21 static inline int set_memory_nx(unsigned long addr
, int numpages
) { return 0; }
24 #ifdef CONFIG_STRICT_KERNEL_RWX
25 void set_kernel_text_rw(void);
26 void set_kernel_text_ro(void);
28 static inline void set_kernel_text_rw(void) { }
29 static inline void set_kernel_text_ro(void) { }