|
@@ -690,8 +690,13 @@ setup_memory(void)
|
|
psw_set_key(PAGE_DEFAULT_KEY);
|
|
psw_set_key(PAGE_DEFAULT_KEY);
|
|
|
|
|
|
free_bootmem_with_active_regions(0, max_pfn);
|
|
free_bootmem_with_active_regions(0, max_pfn);
|
|
- reserve_bootmem(0, PFN_PHYS(start_pfn));
|
|
|
|
|
|
|
|
|
|
+ /*
|
|
|
|
+ * Reserve memory used for lowcore/command line/kernel image.
|
|
|
|
+ */
|
|
|
|
+ reserve_bootmem(0, (unsigned long)_ehead);
|
|
|
|
+ reserve_bootmem((unsigned long)_stext,
|
|
|
|
+ PFN_PHYS(start_pfn) - (unsigned long)_stext);
|
|
/*
|
|
/*
|
|
* Reserve the bootmem bitmap itself as well. We do this in two
|
|
* Reserve the bootmem bitmap itself as well. We do this in two
|
|
* steps (first step was init_bootmem()) because this catches
|
|
* steps (first step was init_bootmem()) because this catches
|