Messages in this thread | | | Date | Mon, 16 Mar 2009 14:14:43 -0700 | From | "H. Peter Anvin" <> | Subject | Re: [crash] Re: Latest brk patchset |
| |
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
| |