android_kernel_xiaomi_sm8350/arch/um/kernel
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 uml: fix mm_context memory leak 2008-02-08 09:22:43 -08:00
asm-offsets.c
config.c.in
dyn.lds.S uml: use PAGE_SIZE in linker scripts 2008-05-13 08:02:22 -07:00
exec.c uml: runtime host VMSPLIT detection 2008-02-08 09:22:42 -08:00
exitcode.c proc: remove proc_root from drivers 2008-04-29 08:06:18 -07:00
gmon_syms.c
gprof_syms.c
init_task.c [PATCH] take init_files to fs/file.c 2008-05-16 17:22:20 -04:00
initrd.c uml: fix initrd printk 2008-02-23 17:12:13 -08:00
irq.c
ksyms.c uml: add missing exports for UML_RANDOM=m 2008-05-21 16:55:58 -07:00
Makefile
mem.c uml: fix build when SLOB is enabled 2008-05-13 08:02:22 -07:00
physmem.c
process.c proc: remove proc_root from drivers 2008-04-29 08:06:18 -07:00
ptrace.c
reboot.c
sigio.c
signal.c
smp.c
syscall.c unified (weak) sys_pipe implementation 2008-05-03 13:50:33 -07:00
sysrq.c
time.c uml: fix bad NTP interaction with clock 2008-05-13 08:02:22 -07:00
tlb.c
trap.c
uaccess.c
um_arch.c uml: deal with inaccessible address space start 2008-06-06 11:29:10 -07:00
umid.c
uml.lds.S uml: use PAGE_SIZE in linker scripts 2008-05-13 08:02:22 -07:00
vmlinux.lds.S