diff options
Diffstat (limited to 'linux/kernel/panic.c')
| -rw-r--r-- | linux/kernel/panic.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/linux/kernel/panic.c b/linux/kernel/panic.c new file mode 100644 index 0000000..feab0cc --- /dev/null +++ b/linux/kernel/panic.c @@ -0,0 +1,11 @@ +/* + * This function is used through-out the kernel (includeinh mm and fs) + * to indicate a major problem. + */ +#include <linux/kernel.h> + +volatile void panic(const char * s) +{ + printk("Kernel panic: %s\n\r",s); + for(;;); +} |
