mirror of https://github.com/zrafa/xinu-avr.git
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.
16 lines
433 B
16 lines
433 B
/* panic.c - panic */ |
|
|
|
#include <xinu.h> |
|
|
|
/*------------------------------------------------------------------------ |
|
* panic - Display a message and stop all processing |
|
*------------------------------------------------------------------------ |
|
*/ |
|
void panic ( |
|
char *msg /* Message to display */ |
|
) |
|
{ |
|
disable(); /* Disable interrupts */ |
|
kprintf("\n\n\rpanic: %s\n\n", msg); |
|
while(TRUE) {;} /* Busy loop forever */ |
|
}
|
|
|