|
|
1.1 root 1: /*
1.1.1.2 root 2: * linux/kernel/panic.c
3: *
1.1.1.3 ! root 4: * Copyright (C) 1991, 1992 Linus Torvalds
1.1.1.2 root 5: */
6:
7: /*
1.1 root 8: * This function is used through-out the kernel (includeinh mm and fs)
9: * to indicate a major problem.
10: */
11: #include <linux/kernel.h>
1.1.1.2 root 12: #include <linux/sched.h>
13:
14: void sys_sync(void); /* it's really int */
1.1 root 15:
16: volatile void panic(const char * s)
17: {
18: printk("Kernel panic: %s\n\r",s);
1.1.1.2 root 19: if (current == task[0])
20: printk("In swapper task - not syncing\n\r");
21: else
22: sys_sync();
1.1 root 23: for(;;);
24: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.