On Mon, Oct 06, 2008 at 11:17:23AM +0300, Kirill A. Shutemov wrote:
This was 2.6.26 (+ some irrelevant patches)
Yes. For 64bit processes you use the method described below for mmap.
MAP_32BIT is just a short form for this, it's internally the same.
But it's actually MAP_31BIT. If you want the full 4GB you should not use it.
"32 bit mode" really has to be set at exec time, otherwise it is not
(e.g. the stack will be beyond).
And personality() is not thread local/safe, so it's not a particularly
good interface to use later. Per system call switches are preferable
and more flexible.
-Andi
--
ak@linux.intel.com
--