tmp_suning_uos_patched/arch/um/os-Linux
Jeff Dike 536788fe2d uml: runtime host VMSPLIT detection
Calculate TASK_SIZE at run-time by figuring out the host's VMSPLIT - this is
needed on i386 if UML is to run on hosts with varying VMSPLITs without
recompilation.

TASK_SIZE is now defined in terms of a variable, task_size.  This gets rid of
an include of pgtable.h from processor.h, which can cause include loops.

On i386, task_size is calculated early in boot by probing the address space in
a binary search to figure out where the boundary between usable and non-usable
memory is.  This tries to make sure that a page that is considered to be in
userspace is, or can be made, read-write.  I'm concerned about a system-global
VDSO page in kernel memory being hit and considered to be a userspace page.

On x86_64, task_size is just the old value of CONFIG_TOP_ADDR.

A bunch of config variable are gone now.  CONFIG_TOP_ADDR is directly replaced
by TASK_SIZE.  NEST_LEVEL is gone since the relocation of the stubs makes it
irrelevant.  All the HOST_VMSPLIT stuff is gone.  All references to these in
arch/um/Makefile are also gone.

I noticed and fixed a missing extern in os.h when adding os_get_task_size.

Note: This has been revised to fix the 32-bit UML on 64-bit host bug that
Miklos ran into.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-08 09:22:42 -08:00
..
drivers uml: tidy helper code 2008-02-05 09:44:30 -08:00
include
skas uml: add newlines to printks 2008-02-05 09:44:31 -08:00
sys-i386 uml: runtime host VMSPLIT detection 2008-02-08 09:22:42 -08:00
sys-x86_64 uml: runtime host VMSPLIT detection 2008-02-08 09:22:42 -08:00
aio.c uml: tidy kern_util.h 2008-02-05 09:44:26 -08:00
elf_aux.c
execvp.c
file.c uml: implement O_APPEND 2008-02-05 09:44:30 -08:00
helper.c uml: tidy helper code 2008-02-05 09:44:30 -08:00
irq.c uml: remove init_irq_signals 2008-02-05 09:44:30 -08:00
main.c uml: install panic notifier earlier 2008-02-05 09:44:29 -08:00
Makefile uml: tidy kern_util.h 2008-02-05 09:44:26 -08:00
mem.c uml: tidy kern_util.h 2008-02-05 09:44:26 -08:00
process.c uml: remove init_irq_signals 2008-02-05 09:44:30 -08:00
registers.c uml: kill processes instead of panicing kernel 2008-02-05 09:44:28 -08:00
sigio.c uml: syle fixes in arch/um/os-Linux 2008-02-05 09:44:29 -08:00
signal.c uml: signal handling tidying 2008-02-05 09:44:30 -08:00
start_up.c uml: move register initialization 2008-02-05 09:44:31 -08:00
time.c uml: after_sleep_interval should return something 2007-12-03 08:13:17 -08:00
tls.c uml: style fixes pass 1 2007-10-16 09:43:05 -07:00
tty_log.c uml: tidy kern_util.h 2008-02-05 09:44:26 -08:00
tty.c uml: tidy kern_util.h 2008-02-05 09:44:26 -08:00
uaccess.c uml: get rid of do_longjmp 2007-10-16 09:43:05 -07:00
umid.c uml: style fixes pass 3 2007-10-16 09:43:05 -07:00
user_syms.c uml: fix string exporting on UML/i386 2007-07-24 12:24:58 -07:00
util.c uml: eliminate setjmp_wrapper 2008-02-05 09:44:29 -08:00