linux/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 uml: delete some unused headers 2008-02-05 09:44:26 -08:00
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 uml: further bugs.c tidying 2008-02-05 09:44:25 -08:00
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 uml: fix URLs in Kconfig and help strings 2008-02-05 09:44:25 -08:00
common-offsets.h uml: cover stubs with a VMA 2008-02-05 09:44:29 -08:00
elf_user.h
frame_kern.h
init.h uml: arch/um/include/init.h needs a definition of __used 2008-02-05 09:44:24 -08:00
initrd.h
irq_kern.h
irq_user.h uml: miscellaneous code cleanups 2008-02-05 09:44:29 -08:00
kern_util.h uml: get rid of syscall counters 2008-02-05 09:44:30 -08:00
kern.h
line.h uml: use __SPIN_LOCK_UNLOCKED 2008-05-13 08:02:22 -07:00
longjmp.h
mconsole_kern.h
mconsole.h uml: remove os_* usage from userspace files 2007-10-16 09:43:06 -07:00
mem_kern.h
mem_user.h uml: SMP locking commentary 2008-02-05 09:44:30 -08:00
mem.h uml: remove __u64 usage from physical memory subsystem 2007-10-16 09:43:05 -07:00
net_kern.h uml: network driver MTU cleanups 2007-10-16 09:43:08 -07:00
net_user.h uml: network driver MTU cleanups 2007-10-16 09:43:08 -07:00
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 uml: style fixes in arch/um/sys-x86_64 2008-02-05 09:44:31 -08:00
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 uml: clean up tlb flush path 2007-10-16 09:43:06 -07:00
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 uml: header untangling 2008-02-05 09:44:28 -08:00
user.h uml: fix build for !CONFIG_PRINTK 2007-11-14 18:45:43 -08:00