rename panic to interrupts to better reflect it's future role
This commit is contained in:
parent
16124277ee
commit
b37f890266
5 changed files with 5 additions and 5 deletions
17
src/kernel/interrupts.h
Normal file
17
src/kernel/interrupts.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef PANIC_H
|
||||
#define PANIC_H
|
||||
|
||||
void kpanic(const char *reason);
|
||||
void kpanic_force();
|
||||
|
||||
#define KASSERT(cond, msg) \
|
||||
if (!(cond)) \
|
||||
{ \
|
||||
kprint("ASSERTION FAILED: "); \
|
||||
kprint(__FILE__); \
|
||||
kprint(":"); \
|
||||
/* Note: Printing line numbers requires a custom itoa/printf */ \
|
||||
kpanic(msg); \
|
||||
}
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue