Wouldm't it be much more readable with
unsigned long start = e820.map[i].addr;
unsigned long end = start + e820.map[i].size;
start = PAGE_ALIGN(start) + PAGE_OFFSET;
end = (end & PAGE_MASK) + PAGE_OFFSET;
> + size = e820.map[i].size - (PAGE_ALIGN(addr) - addr);
Ok guys, 'fess up: you had to look at that for some time before you
convinced yourself what the hell it was doing, right?
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/