You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
448 B
25 lines
448 B
/*
|
|
* linux/kernel/panic.c
|
|
*
|
|
* (C) 1991 Linus Torvalds
|
|
*/
|
|
|
|
/*
|
|
* This function is used through-out the kernel (includeinh mm and fs)
|
|
* to indicate a major problem.
|
|
*/
|
|
#include <linux/kernel.h>
|
|
#include <linux/sched.h>
|
|
|
|
void sys_sync(void); /* it's really int */
|
|
|
|
volatile void panic(const char * s)
|
|
{
|
|
printk("Kernel panic: %s\n\r",s);
|
|
if (current == task[0])
|
|
printk("In swapper task - not syncing\n\r");
|
|
else
|
|
sys_sync();
|
|
for(;;);
|
|
}
|