OurOS 0.1
Operating System built by McGill Students
 
Loading...
Searching...
No Matches
panic.h
Go to the documentation of this file.
1/**
2 * @file panic.h
3 * @brief Kernel panic system.
4 * @note Future implementations can restart OS after a given amount of time, rather than
5 * halt forever.
6 */
7
8#ifndef _PANIC_H
9#define _PANIC_H
10
11/**
12 * @brief Kernel panic function.
13 * @note For unsalvageable errors, panic can be used to display an error message to the
14 * screen and halt the CPU.
15 *
16 * @param msg Message to be displayed.
17 */
18void panic(const char *msg);
19
20#endif // _PANIC_H
void panic(const char *msg)
Kernel panic function.
Definition panic.c:6