x86_64: allocate sparsemem memmap above 4G
[pandora-kernel.git] / arch / x86_64 / mm / init.c
index 1336da8..1ad5111 100644 (file)
@@ -761,3 +761,9 @@ int in_gate_area_no_task(unsigned long addr)
 {
        return (addr >= VSYSCALL_START) && (addr < VSYSCALL_END);
 }
+
+void *alloc_bootmem_high_node(pg_data_t *pgdat, unsigned long size)
+{
+       return __alloc_bootmem_core(pgdat->bdata, size,
+                       SMP_CACHE_BYTES, (4UL*1024*1024*1024), 0);
+}