struct e820map __initdata e820_raw;
/*
- * This function checks if the entire range <start,end> is mapped with type.
+ * This function checks if the entire range [start,end) is mapped with type.
*
* Note: this function only works correct if the e820 table is sorted and
* not-overlapping, which is the case
if (ei->addr >= end || ei->addr + ei->size <= start)
continue;
- /* if the region is at the beginning of <start,end> we move
+ /*
+ * If the region is at the beginning of [start,end) we move
* start to the end of the region since it's ok until there
*/
if (ei->addr <= start)
u64 old_size = size;
int valid = 0;
- while (!e820_all_mapped(addr, addr + size - 1, E820_RESERVED)) {
+ while (!e820_all_mapped(addr, addr + size, E820_RESERVED)) {
size >>= 1;
if (size < (16UL<<20))
break;