kernel_optimize_test/arch/um/os-Linux/sys-x86_64
Tom Spink 40fb16a360 uml: deal with inaccessible address space start
This patch makes os_get_task_size locate the bottom of the address space,
as well as the top.  This is for systems which put a lower limit on mmap
addresses.  It works by manually scanning pages from zero onwards until a
valid page is found.

Because the bottom of the address space may not be zero, it's not
sufficient to assume the top of the address space is the size of the
address space.  The size is the difference between the top address and
bottom address.

[jdike@addtoit.com: changed the name to reflect that this function is
supposed to return the top of the process address space, not its size and
changed the return value to reflect that.  Also some minor formatting
changes]
Signed-off-by: Tom Spink <tspink@gmail.com>
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-06-06 11:29:10 -07:00
..
Makefile uml: runtime host VMSPLIT detection 2008-02-08 09:22:42 -08:00
prctl.c
registers.c uml: fix FP register corruption 2008-02-23 17:12:15 -08:00
signal.c uml: iRQ stacks 2007-05-11 08:29:34 -07:00
task_size.c uml: deal with inaccessible address space start 2008-06-06 11:29:10 -07:00