Re: [crash] Re: Latest brk patchset

From: H. Peter Anvin
Date: Mon Mar 16 2009 - 17:19:33 EST


Jeremy Fitzhardinge wrote:

Well, its a bit more complex than that; we'd need to make it conditional on the user/kernel split, which seems all a bit fiddly. I guess it could be something like:

MAPPING_BEYOND_END = PAGE_TABLE_SIZE((1<<(32-PAGE_SHIFT)) - (PAGE_OFFSET / PAGE_SIZE)) * PAGE_SIZE


Or simplified:

PAGE_TABLE_SIZE(((1 << 32)-PAGE_OFFSET) >> PAGE_SHIFT) << PAGE_SHIFT

-hpa

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/