aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/init_32.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2008-01-30 07:34:06 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:34:06 -0500
commit5f5192b9feeff6a96c97c143c3ca558fdbe2dc8e (patch)
tree4abe5cf23d4cb4a052af8c26c80451b368392ee8 /arch/x86/mm/init_32.c
parente1271f686a0e376aa6ee97984c16f91a787e4480 (diff)
x86: move page_is_ram() function
Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/mm/init_32.c')
-rw-r--r--arch/x86/mm/init_32.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c
index 7c9bb3076b8a..f7b941c3b2c3 100644
--- a/arch/x86/mm/init_32.c
+++ b/arch/x86/mm/init_32.c
@@ -211,28 +211,6 @@ static inline int page_kills_ppro(unsigned long pagenr)
211 return 0; 211 return 0;
212} 212}
213 213
214int page_is_ram(unsigned long pagenr)
215{
216 int i;
217 unsigned long addr, end;
218
219 for (i = 0; i < e820.nr_map; i++) {
220
221 if (e820.map[i].type != E820_RAM) /* not usable memory */
222 continue;
223 /*
224 * !!!FIXME!!! Some BIOSen report areas as RAM that
225 * are not. Notably the 640->1Mb area. We need a sanity
226 * check here.
227 */
228 addr = (e820.map[i].addr+PAGE_SIZE-1) >> PAGE_SHIFT;
229 end = (e820.map[i].addr+e820.map[i].size) >> PAGE_SHIFT;
230 if ((pagenr >= addr) && (pagenr < end))
231 return 1;
232 }
233 return 0;
234}
235
236#ifdef CONFIG_HIGHMEM 214#ifdef CONFIG_HIGHMEM
237pte_t *kmap_pte; 215pte_t *kmap_pte;
238pgprot_t kmap_prot; 216pgprot_t kmap_prot;