search for: spp_getpag

Displaying 1 result from an estimated 1 matches for "spp_getpag".

Did you mean: spp_getpage
2007 Feb 14
2
[PATCH 8/8] 2.6.17: scan DMI early
.../x86_64/mm/init-xen.c =================================================================== --- head-2007-02-08.orig/arch/x86_64/mm/init-xen.c 2007-02-08 17:07:13.000000000 +0100 +++ head-2007-02-08/arch/x86_64/mm/init-xen.c 2007-02-08 17:09:47.000000000 +0100 @@ -208,7 +208,11 @@ static __init void *spp_getpage(void) void *ptr; if (after_bootmem) ptr = (void *) get_zeroed_page(GFP_ATOMIC); - else + else if (start_pfn < table_end) { + ptr = __va(start_pfn << PAGE_SHIFT); + start_pfn++; + memset(ptr, 0, PAGE_SIZE); + } else ptr = alloc_bootmem_pages(PAGE_SIZE); if (!ptr || ((unsign...