original_kernel/arch/um/include
Jeff Dike 75e29b18d9 [PATCH] uml: stack usage reduction
The KSTK_* macros used an inordinate amount of stack.  In order to overcome
an impedance mismatch between their interface, which just returns a single
register value, and the interface of get_thread_regs, which took a full
pt_regs, the implementation created an on-stack pt_regs, filled it in, and
returned one field.  do_task_stat calls KSTK_* twice, resulting in two
local pt_regs, blowing out the stack.

This patch changes the interface (and name) of get_thread_regs to just
return a single register from a jmp_buf.

The include of archsetjmp.h" in registers.h to get the definition of
jmp_buf exposed a bogus include of <setjmp.h> in start_up.c.  <setjmp.h>
shouldn't be used anywhere any more since UML uses the klibc
setjmp/longjmp.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-09-26 08:49:09 -07:00
..
skas [PATCH] uml: fix static binary segfault 2006-07-10 13:24:23 -07:00
sysdep-i386 [PATCH] uml: Move signal handlers to arch code 2006-09-26 08:49:07 -07:00
sysdep-ia64
sysdep-ppc
sysdep-x86_64 [PATCH] uml: Move signal handlers to arch code 2006-09-26 08:49:07 -07:00
tt [PATCH] uml: fix static binary segfault 2006-07-10 13:24:23 -07:00
aio.h
chan_kern.h
chan_user.h
choose-mode.h
common-offsets.h
elf_user.h
frame_kern.h
init.h
initrd.h
irq_kern.h
irq_user.h [PATCH] uml: remove spinlock wrapper functions 2006-07-10 13:24:23 -07:00
kern.h
kern_util.h [PATCH] uml: Remove unused variable 2006-09-26 08:49:08 -07:00
line.h
longjmp.h [PATCH] uml: Use klibc setjmp/longjmp 2006-09-26 08:49:05 -07:00
mconsole.h
mconsole_kern.h
mem.h
mem_kern.h
mem_user.h
misc_constants.h
mode.h
mode_kern.h
net_kern.h
net_user.h [PATCH] uml: clean our set_ether_mac 2006-09-26 08:49:09 -07:00
os.h [PATCH] uml: timer cleanups 2006-09-26 08:49:08 -07:00
process.h
ptrace_user.h
registers.h [PATCH] uml: stack usage reduction 2006-09-26 08:49:09 -07:00
sigcontext.h
sigio.h
signal_kern.h
skas_ptrace.h
skas_ptregs.h
syscall.h
sysrq.h
task.h
tempfile.h
tlb.h
ubd_user.h
um_mmu.h
um_uaccess.h
umid.h
uml_uaccess.h
user.h
user_util.h