diff options
Diffstat (limited to 'arch/x86/kernel/e820.c')
-rw-r--r-- | arch/x86/kernel/e820.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c index 774063f11be0..5051ce744b4e 100644 --- a/arch/x86/kernel/e820.c +++ b/arch/x86/kernel/e820.c | |||
@@ -94,7 +94,7 @@ int __init e820_all_mapped(u64 start, u64 end, unsigned type) | |||
94 | /* | 94 | /* |
95 | * Add a memory region to the kernel e820 map. | 95 | * Add a memory region to the kernel e820 map. |
96 | */ | 96 | */ |
97 | void __init add_memory_region(u64 start, u64 size, int type) | 97 | void __init e820_add_region(u64 start, u64 size, int type) |
98 | { | 98 | { |
99 | int x = e820.nr_map; | 99 | int x = e820.nr_map; |
100 | 100 | ||
@@ -384,12 +384,12 @@ int __init copy_e820_map(struct e820entry *biosmap, int nr_map) | |||
384 | if (start > end) | 384 | if (start > end) |
385 | return -1; | 385 | return -1; |
386 | 386 | ||
387 | add_memory_region(start, size, type); | 387 | e820_add_region(start, size, type); |
388 | } while (biosmap++, --nr_map); | 388 | } while (biosmap++, --nr_map); |
389 | return 0; | 389 | return 0; |
390 | } | 390 | } |
391 | 391 | ||
392 | u64 __init update_memory_range(u64 start, u64 size, unsigned old_type, | 392 | u64 __init e820_update_range(u64 start, u64 size, unsigned old_type, |
393 | unsigned new_type) | 393 | unsigned new_type) |
394 | { | 394 | { |
395 | int i; | 395 | int i; |
@@ -414,7 +414,7 @@ u64 __init update_memory_range(u64 start, u64 size, unsigned old_type, | |||
414 | final_end = min(start + size, ei->addr + ei->size); | 414 | final_end = min(start + size, ei->addr + ei->size); |
415 | if (final_start >= final_end) | 415 | if (final_start >= final_end) |
416 | continue; | 416 | continue; |
417 | add_memory_region(final_start, final_end - final_start, | 417 | e820_add_region(final_start, final_end - final_start, |
418 | new_type); | 418 | new_type); |
419 | real_updated_size += final_end - final_start; | 419 | real_updated_size += final_end - final_start; |
420 | } | 420 | } |
@@ -774,7 +774,7 @@ u64 __init early_reserve_e820(u64 startt, u64 sizet, u64 align) | |||
774 | return 0; | 774 | return 0; |
775 | 775 | ||
776 | addr = round_down(start + size - sizet, align); | 776 | addr = round_down(start + size - sizet, align); |
777 | update_memory_range(addr, sizet, E820_RAM, E820_RESERVED); | 777 | e820_update_range(addr, sizet, E820_RAM, E820_RESERVED); |
778 | printk(KERN_INFO "update e820 for early_reserve_e820\n"); | 778 | printk(KERN_INFO "update e820 for early_reserve_e820\n"); |
779 | update_e820(); | 779 | update_e820(); |
780 | 780 | ||
@@ -949,13 +949,13 @@ static int __init parse_memmap_opt(char *p) | |||
949 | userdef = 1; | 949 | userdef = 1; |
950 | if (*p == '@') { | 950 | if (*p == '@') { |
951 | start_at = memparse(p+1, &p); | 951 | start_at = memparse(p+1, &p); |
952 | add_memory_region(start_at, mem_size, E820_RAM); | 952 | e820_add_region(start_at, mem_size, E820_RAM); |
953 | } else if (*p == '#') { | 953 | } else if (*p == '#') { |
954 | start_at = memparse(p+1, &p); | 954 | start_at = memparse(p+1, &p); |
955 | add_memory_region(start_at, mem_size, E820_ACPI); | 955 | e820_add_region(start_at, mem_size, E820_ACPI); |
956 | } else if (*p == '$') { | 956 | } else if (*p == '$') { |
957 | start_at = memparse(p+1, &p); | 957 | start_at = memparse(p+1, &p); |
958 | add_memory_region(start_at, mem_size, E820_RESERVED); | 958 | e820_add_region(start_at, mem_size, E820_RESERVED); |
959 | } else { | 959 | } else { |
960 | end_user_pfn = (mem_size >> PAGE_SHIFT); | 960 | end_user_pfn = (mem_size >> PAGE_SHIFT); |
961 | } | 961 | } |