From 1cee54b27caaea2c19edf7a27c8b3997cbb573c6 Mon Sep 17 00:00:00 2001 From: Yasuaki Ishimatsu Date: Mon, 30 Jul 2012 14:41:13 -0700 Subject: [PATCH] --- yaml --- r: 319935 b: refs/heads/master c: 4ed940d4c34c21a1a356969a923f2815d608e0bf h: refs/heads/master i: 319933: 9b4f71018e89aff127a8d842d026833668c9c8d9 319931: f148c756d0dcc4d86a89782f3fb085d077d01aed 319927: f5d11dbe4924a364e3e52897b45982390bdc084b 319919: 657800d1cf7c5b7f4fd1af2e9491db9f27fa0a04 319903: 6c37ff669a008750772c99306d0b5014d706207d 319871: d1f6efdb5ca123a0a8c1809810b48db3eee376e6 v: v3 --- [refs] | 2 +- trunk/arch/x86/kernel/e820.c | 2 +- trunk/drivers/firmware/memmap.c | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/[refs] b/[refs] index 09631b2ac224..c5699b7c849b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4b0681487bf72fdb86b42c93b7d8a607e5a426b1 +refs/heads/master: 4ed940d4c34c21a1a356969a923f2815d608e0bf diff --git a/trunk/arch/x86/kernel/e820.c b/trunk/arch/x86/kernel/e820.c index 41857970517f..ed858e9e9a74 100644 --- a/trunk/arch/x86/kernel/e820.c +++ b/trunk/arch/x86/kernel/e820.c @@ -944,7 +944,7 @@ void __init e820_reserve_resources(void) for (i = 0; i < e820_saved.nr_map; i++) { struct e820entry *entry = &e820_saved.map[i]; firmware_map_add_early(entry->addr, - entry->addr + entry->size - 1, + entry->addr + entry->size, e820_type_to_string(entry->type)); } } diff --git a/trunk/drivers/firmware/memmap.c b/trunk/drivers/firmware/memmap.c index adc07102a20d..c1cdc9236666 100644 --- a/trunk/drivers/firmware/memmap.c +++ b/trunk/drivers/firmware/memmap.c @@ -98,7 +98,7 @@ static LIST_HEAD(map_entries); /** * firmware_map_add_entry() - Does the real work to add a firmware memmap entry. * @start: Start of the memory range. - * @end: End of the memory range (inclusive). + * @end: End of the memory range (exclusive). * @type: Type of the memory range. * @entry: Pre-allocated (either kmalloc() or bootmem allocator), uninitialised * entry. @@ -113,7 +113,7 @@ static int firmware_map_add_entry(u64 start, u64 end, BUG_ON(start > end); entry->start = start; - entry->end = end; + entry->end = end - 1; entry->type = type; INIT_LIST_HEAD(&entry->list); kobject_init(&entry->kobj, &memmap_ktype); @@ -148,7 +148,7 @@ static int add_sysfs_fw_map_entry(struct firmware_map_entry *entry) * firmware_map_add_hotplug() - Adds a firmware mapping entry when we do * memory hotplug. * @start: Start of the memory range. - * @end: End of the memory range (inclusive). + * @end: End of the memory range (exclusive) * @type: Type of the memory range. * * Adds a firmware mapping entry. This function is for memory hotplug, it is @@ -175,7 +175,7 @@ int __meminit firmware_map_add_hotplug(u64 start, u64 end, const char *type) /** * firmware_map_add_early() - Adds a firmware mapping entry. * @start: Start of the memory range. - * @end: End of the memory range (inclusive). + * @end: End of the memory range. * @type: Type of the memory range. * * Adds a firmware mapping entry. This function uses the bootmem allocator