| * machine_specific_memory_setup - Hook for machine specific memory setup. |
| * This is included late in kernel/setup.c so that it can make |
| * use of all of the static functions. |
| static char * __init machine_specific_memory_setup(void) |
| * Try to copy the BIOS-supplied E820-map. |
| * Otherwise fake a memory map; one section from 0k->640k, |
| * the next section from 1mb->appropriate_mem_k |
| sanitize_e820_map(E820_MAP, &E820_MAP_NR); |
| if (copy_e820_map(E820_MAP, E820_MAP_NR) < 0) { |
| /* compare results from other methods and take the greater */ |
| if (ALT_MEM_K < EXT_MEM_K) { |
| add_memory_region(0, LOWMEMSIZE(), E820_RAM); |
| add_memory_region(HIGH_MEMORY, mem_size << 10, E820_RAM); |