Messages in this thread | | | From | (Nick Holloway) | Subject | Re: [patch] 2.3.17-pre1 mem_init [Re: [PATCH] 2.3.15 fancy memory | Date | 5 Sep 1999 09:21:03 +0100 |
| |
torvalds@transmeta.com (Linus Torvalds) writes: > 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;
Doesn't this end up wasting 1 page of memory at the start (as PAGE_ALIGN already takes you to the next page boundary)?
-- `O O' | Home: Nick.Holloway@alfie.demon.co.uk http://www.alfie.demon.co.uk/ // ^ \\ | Work: Nick.Holloway@parallax.co.uk
- 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/
| |