]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
x86: export set_memory_ro and set_memory_rw
authorBruce Allan <bruce.w.allan@intel.com>
Tue, 30 Sep 2008 03:19:22 +0000 (20:19 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 30 Sep 2008 07:06:41 +0000 (09:06 +0200)
Export set_memory_ro() and set_memory_rw() calls for use by drivers that need
to have more debug information about who might be writing to memory space.
this was initially developed for use while debugging a memory corruption
problem with e1000e.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/pageattr.c

index 43e2f8483e4f59c33559263c0011e1e5bf041f9d..62c1eefcce0594c90881e384d28422284451930a 100644 (file)
@@ -906,11 +906,13 @@ int set_memory_ro(unsigned long addr, int numpages)
 {
        return change_page_attr_clear(addr, numpages, __pgprot(_PAGE_RW));
 }
+EXPORT_SYMBOL_GPL(set_memory_ro);
 
 int set_memory_rw(unsigned long addr, int numpages)
 {
        return change_page_attr_set(addr, numpages, __pgprot(_PAGE_RW));
 }
+EXPORT_SYMBOL_GPL(set_memory_rw);
 
 int set_memory_np(unsigned long addr, int numpages)
 {