linux/arch/um/os-Linux
Jeff Dike 0983a88b9f uml: install panic notifier earlier
It turns out that if there's a panic early enough, UML will just sit there in
the LED-blinking loop because the panic notifier hadn't been installed yet.

This patch installs it earlier.

It also fixes the problem which exposed the hang, namely that if you give UML
a zero-sized initrd, it will ask alloc_bootmem for zero bytes, and that will
cause the panic.

While I was in initrd.c, I gave it a style makeover.

Prompted by checkpatch, I moved a couple extern declarations of uml_exitcode
to kern_util.h.

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-02-05 09:44:29 -08:00
..
drivers uml: tidy kern_util.h 2008-02-05 09:44:26 -08:00
include Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
skas uml: kill processes instead of panicing kernel 2008-02-05 09:44:28 -08:00
sys-i386 uml: style fixes in FP code 2007-10-16 09:43:07 -07:00
sys-x86_64 uml: throw out CONFIG_MODE_TT 2007-10-16 09:43:05 -07:00
aio.c uml: tidy kern_util.h 2008-02-05 09:44:26 -08:00
elf_aux.c [PATCH] uml: host VDSO fix 2007-03-01 14:53:38 -08:00
execvp.c [PATCH] uml: make execvp safe for our usage 2006-11-25 13:28:34 -08:00
file.c uml: style fixes in file.c 2008-02-05 09:44:29 -08:00
helper.c uml: stop gdb from deleting breakpoints when running UML 2007-12-17 19:28:15 -08:00
irq.c uml: syle fixes in arch/um/os-Linux 2008-02-05 09:44:29 -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: stop gdb from deleting breakpoints when running UML 2007-12-17 19:28:15 -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: tidy kern_util.h 2008-02-05 09:44:26 -08:00
start_up.c uml: miscellaneous code cleanups 2008-02-05 09:44:29 -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