android_kernel_xiaomi_sm8350/arch/um/include
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
..
skas
sysdep-i386 uml: tidy ptrace interface 2008-05-13 08:02:21 -07:00
sysdep-ia64
sysdep-ppc
sysdep-x86_64 uml: tidy ptrace interface 2008-05-13 08:02:21 -07:00
aio.h
arch.h
as-layout.h uml: use PAGE_SIZE in linker scripts 2008-05-13 08:02:22 -07:00
chan_kern.h uml: remove a useless function 2008-04-28 08:58:28 -07:00
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 uml: use __SPIN_LOCK_UNLOCKED 2008-05-13 08:02:22 -07:00
longjmp.h
mconsole_kern.h
mconsole.h
mem_kern.h
mem_user.h
mem.h
net_kern.h
net_user.h
os.h uml: deal with inaccessible address space start 2008-06-06 11:29:10 -07:00
process.h uml: track and make up lost ticks 2008-05-13 08:02:22 -07:00
ptrace_user.h
registers.h uml: fix FP register corruption 2008-02-23 17:12:15 -08:00
sigcontext.h
sigio.h
skas_ptrace.h uml: style fixes 2008-05-13 08:02:21 -07:00
skas_ptregs.h
syscall.h
sysrq.h
task.h
tlb.h
ubd_user.h
um_malloc.h uml: fix build when SLOB is enabled 2008-05-13 08:02:22 -07:00
um_mmu.h uml: fix mm_context memory leak 2008-02-08 09:22:43 -08:00
um_uaccess.h
user.h