diff options
author | Florian Lohoff <flo@rfc822.org> | 2000-05-04 10:44:51 +0000 |
---|---|---|
committer | Florian Lohoff <flo@rfc822.org> | 2000-05-04 10:44:51 +0000 |
commit | 233304bf33c91199b2d8d919c1b75aebca5b58c3 (patch) | |
tree | 34527eeb823c934bad11a68fd661cf793f5436e6 /arch/mips | |
parent | 5ca69d9efa0f901d6107b19beab37f2bc23e33a1 (diff) |
Revert kernel page allocation
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/arc/memory.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/mips/arc/memory.c b/arch/mips/arc/memory.c index 783900d55..22c868ca1 100644 --- a/arch/mips/arc/memory.c +++ b/arch/mips/arc/memory.c @@ -21,9 +21,6 @@ #undef DEBUG -extern char _end; -extern char _ftext; - struct linux_mdesc * __init ArcGetMemoryDescriptor(struct linux_mdesc *Current) { @@ -197,10 +194,6 @@ void __init prom_meminit(void) max_low_pfn = find_max_low_pfn(); - /* FIXME: We are assuming the first pages of largest block - are free - This musnt be true as the start of the - largest block might be occupied by the kernel */ - largest = find_largest_memblock(); bootmap_size = init_bootmem(largest->base >> PAGE_SHIFT, max_low_pfn); @@ -218,19 +211,6 @@ void __init prom_meminit(void) /* Reserve the memory bootmap itself */ reserve_bootmem(largest->base, bootmap_size); - /* Reserve kernel pages */ - - kbegin=(unsigned long) PHYSADDR(&_ftext); - kend=(unsigned long) PHYSADDR(&_end); - -#ifdef DEBUG - prom_printf("_end address 0x%08lx\n",kend); - prom_printf("_ftext address 0x%08lx\n",kbegin); - prom_printf("size 0x%08lx\n",kend-kbegin); -#endif - - reserve_bootmem(kbegin, kend-kbegin); - printk("PROMLIB: Total free ram %dK / %dMB.\n", totram >> 10, totram >> 20); } |