sparc32: register memory occupied by kernel as memblock.memory
[linux-2.6-microblaze.git] / arch / sparc / mm / init_32.c
index 906eda1..3cb3dff 100644 (file)
@@ -193,6 +193,7 @@ unsigned long __init bootmem_init(unsigned long *pages_avail)
        /* Reserve the kernel text/data/bss. */
        size = (start_pfn << PAGE_SHIFT) - phys_base;
        memblock_reserve(phys_base, size);
+       memblock_add(phys_base, size);
 
        size = memblock_phys_mem_size() - memblock_reserved_size();
        *pages_avail = (size >> PAGE_SHIFT) - high_pages;