summaryrefslogtreecommitdiff
path: root/include/asm-generic/set_memory.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic/set_memory.h')
-rw-r--r--include/asm-generic/set_memory.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asm-generic/set_memory.h b/include/asm-generic/set_memory.h
new file mode 100644
index 000000000000..83e81f8996b2
--- /dev/null
+++ b/include/asm-generic/set_memory.h
@@ -0,0 +1,12 @@
+#ifndef __ASM_SET_MEMORY_H
+#define __ASM_SET_MEMORY_H
+
+/*
+ * Functions to change memory attributes.
+ */
+int set_memory_ro(unsigned long addr, int numpages);
+int set_memory_rw(unsigned long addr, int numpages);
+int set_memory_x(unsigned long addr, int numpages);
+int set_memory_nx(unsigned long addr, int numpages);
+
+#endif