diff options
author | 2006-09-25 23:33:08 -0700 | |
---|---|---|
committer | 2006-09-26 08:49:09 -0700 | |
commit | 75e29b18d9a46bf3193278e92dc95609a8cca2ab (patch) | |
tree | 413935160ac2f65c13ec5260a60cdd1d9259fd83 /include/linux/hdlc | |
parent | [PATCH] uml: clean our set_ether_mac (diff) | |
download | linux-dev-75e29b18d9a46bf3193278e92dc95609a8cca2ab.tar.xz linux-dev-75e29b18d9a46bf3193278e92dc95609a8cca2ab.zip |
[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>
Diffstat (limited to 'include/linux/hdlc')
0 files changed, 0 insertions, 0 deletions