Messages in this thread | | | Date | Fri, 23 Jun 2006 20:55:31 +0100 | From | Russell King <> | Subject | Re: 2.6.17-mm1 |
| |
On Fri, Jun 23, 2006 at 05:14:23PM +0200, Franck Bui-Huu wrote: > Franck Bui-Huu wrote: > > - free_area_init_node(0, NODE_DATA(0), zones_size, > > - __pa(PAGE_OFFSET) >> PAGE_SHIFT, NULL); > > I'm wondering why using "__pa(PAGE_OFFSET) >> PAGE_SHIFT" to compute the start > of memory. That should always result in 0, shouldn't it ?
No. There are platforms where memory starts at about 3GB physical, so __pa(PAGE_OFFSET) = 0xc0000000, which most definitely isn't zero when shifted right by PAGE_SHIFT.
The world is not a PC.
-- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: 2.6 Serial core - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |