mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 00:52:01 +00:00
40fb16a360
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> |
||
---|---|---|
.. | ||
skas | ||
sysdep-i386 | ||
sysdep-ia64 | ||
sysdep-ppc | ||
sysdep-x86_64 | ||
aio.h | ||
arch.h | ||
as-layout.h | ||
chan_kern.h | ||
chan_user.h | ||
common-offsets.h | ||
elf_user.h | ||
frame_kern.h | ||
init.h | ||
initrd.h | ||
irq_kern.h | ||
irq_user.h | ||
kern_util.h | ||
kern.h | ||
line.h | ||
longjmp.h | ||
mconsole_kern.h | ||
mconsole.h | ||
mem_kern.h | ||
mem_user.h | ||
mem.h | ||
net_kern.h | ||
net_user.h | ||
os.h | ||
process.h | ||
ptrace_user.h | ||
registers.h | ||
sigcontext.h | ||
sigio.h | ||
skas_ptrace.h | ||
skas_ptregs.h | ||
syscall.h | ||
sysrq.h | ||
task.h | ||
tlb.h | ||
ubd_user.h | ||
um_malloc.h | ||
um_mmu.h | ||
um_uaccess.h | ||
user.h |