Loading arch/x86/xen/setup.c +4 −3 Original line number Diff line number Diff line Loading @@ -158,9 +158,8 @@ char * __init xen_memory_setup(void) xen_extra_mem_start = mem_end; for (i = 0; i < memmap.nr_entries; i++) { unsigned long long end = map[i].addr + map[i].size; if (map[i].type == E820_RAM) { if (map[i].addr > mem_end) continue; if (end > mem_end) { /* Truncate region to max_mem. */ map[i].size -= end - mem_end; Loading @@ -169,7 +168,9 @@ char * __init xen_memory_setup(void) } } else if (map[i].type != E820_RAM) xen_extra_mem_start = end; if (map[i].size > 0) if ((map[i].type != E820_RAM || map[i].addr < mem_end) && map[i].size > 0) e820_add_region(map[i].addr, map[i].size, map[i].type); } Loading Loading
arch/x86/xen/setup.c +4 −3 Original line number Diff line number Diff line Loading @@ -158,9 +158,8 @@ char * __init xen_memory_setup(void) xen_extra_mem_start = mem_end; for (i = 0; i < memmap.nr_entries; i++) { unsigned long long end = map[i].addr + map[i].size; if (map[i].type == E820_RAM) { if (map[i].addr > mem_end) continue; if (end > mem_end) { /* Truncate region to max_mem. */ map[i].size -= end - mem_end; Loading @@ -169,7 +168,9 @@ char * __init xen_memory_setup(void) } } else if (map[i].type != E820_RAM) xen_extra_mem_start = end; if (map[i].size > 0) if ((map[i].type != E820_RAM || map[i].addr < mem_end) && map[i].size > 0) e820_add_region(map[i].addr, map[i].size, map[i].type); } Loading