|
From: Nicholas N. <nj...@ca...> - 2004-08-25 21:43:29
|
Hi, What's a good way to find the highest user-space address? One possibility is to look at the address of a stack variable, and round up a bit. This is really simple but assumes that the stack is at the top of the user-space. Another possibility is to poke around with mmaps, and see where they stop succeeding. Unfortunately, this kind of trashes the code/data that is already used in the address space, which gives unpredictable results. Any other ideas? This is with respect to determining (at configure-time) where stage2 should go. thanks N |