[Zion] Move ProcessManager to map as well.

This commit is contained in:
Drew Galbraith 2023-11-16 22:17:11 -08:00
parent 6e227e1cf6
commit aa2d80b557
3 changed files with 11 additions and 15 deletions

View file

@ -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();