File:  [Early Linux] / linux / kernel / panic.c
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 18:01:40 2018 UTC (17 months, 4 weeks ago) by root
Branches: linus, MAIN
CVS tags: linux096c, linux096b, linux096a, linux095c, linux095a, linux095, linux012, linux011, linux010, HEAD
linux 0.10

/*
 *  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(;;);
}

unix.superglobalmegacorp.com