[Zion] Move ProcessManager to map as well.
This commit is contained in:
parent
6e227e1cf6
commit
aa2d80b557
3 changed files with 11 additions and 15 deletions
|
|
@ -28,6 +28,12 @@ void panic(const char* str, Args... args) {
|
|||
asm volatile("cli; hlt;");
|
||||
}
|
||||
|
||||
#define PANIC_ON_ERR(expr, str) \
|
||||
{ \
|
||||
if (expr != glcr::OK) { \
|
||||
panic(str); \
|
||||
} \
|
||||
}
|
||||
#define UNREACHABLE \
|
||||
panic("Unreachable {}, {}", __FILE__, __LINE__); \
|
||||
__builtin_unreachable();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue