lkml.org 
[lkml]   [1999]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [patch] 2.3.17-pre1 mem_init [Re: [PATCH] 2.3.15 fancy memory
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.069 / U:1.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site