patch-2.2.15 linux/kernel/panic.c
Next file: linux/kernel/signal.c
Previous file: linux/kernel/module.c
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Fri Apr 21 12:47:02 2000
- Orig file:
v2.2.14/kernel/panic.c
- Orig date:
Tue Jan 4 21:19:03 2000
diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/kernel/panic.c linux/kernel/panic.c
@@ -16,10 +16,6 @@
#include <linux/sysrq.h>
#include <linux/interrupt.h>
-#ifdef __alpha__
-#include <asm/machvec.h>
-#endif
-
asmlinkage void sys_sync(void); /* it's really int */
extern void unblank_console(void);
extern int C_A_D;
@@ -38,6 +34,9 @@
{
static char buf[1024];
va_list args;
+#ifdef CONFIG_ARCH_S390
+ unsigned long caller = (unsigned long) __builtin_return_address(0);
+#endif
va_start(args, fmt);
vsprintf(buf, fmt, args);
@@ -81,12 +80,8 @@
printk("Press L1-A to return to the boot prom\n");
}
#endif
-#ifdef __alpha__
- if (alpha_using_srm)
- halt();
-#endif
#ifdef CONFIG_ARCH_S390
- disabled_wait(0x1234);
+ disabled_wait(caller);
#endif
sti();
for(;;) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)