diff options
Diffstat (limited to 'xenolinux-2.4.22-sparse/kernel/panic.c')
-rw-r--r-- | xenolinux-2.4.22-sparse/kernel/panic.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xenolinux-2.4.22-sparse/kernel/panic.c b/xenolinux-2.4.22-sparse/kernel/panic.c index 90a782e6b5..871ea67fee 100644 --- a/xenolinux-2.4.22-sparse/kernel/panic.c +++ b/xenolinux-2.4.22-sparse/kernel/panic.c @@ -16,6 +16,7 @@ #include <linux/init.h> #include <linux/sysrq.h> #include <linux/interrupt.h> +#include <linux/console.h> asmlinkage void sys_sync(void); /* it's really int */ @@ -31,6 +32,8 @@ static int __init panic_setup(char *str) __setup("panic=", panic_setup); +int machine_paniced; + /** * panic - halt the system * @fmt: The text string to print @@ -49,6 +52,11 @@ NORET_TYPE void panic(const char * fmt, ...) unsigned long caller = (unsigned long) __builtin_return_address(0); #endif +#ifdef CONFIG_VT + disable_console_blank(); +#endif + machine_paniced = 1; + bust_spinlocks(1); va_start(args, fmt); vsprintf(buf, fmt, args); |