[kernel] Move kassert out of kutil
Continuing moving things out of kutil. The assert as implemented could only ever work in the kernel, so remaining kutil uses of kassert have been moved to including standard C assert instead. Along the way, kassert was broken out into panic::panic and kassert, and the panic.serial namespace was renamed panicking.
This commit is contained in:
13
src/kernel/assert.cpp
Normal file
13
src/kernel/assert.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "assert.h"
|
||||
|
||||
namespace panic {
|
||||
|
||||
uint32_t *apic_icr = reinterpret_cast<uint32_t*>(0xffffc000fee00300);
|
||||
uintptr_t symbol_table = 0;
|
||||
|
||||
} // namespace panic
|
||||
|
||||
extern "C"
|
||||
void _PDCLIB_assert(const char *message, const char *function, const char *file, unsigned line) {
|
||||
panic::panic(message, function, file, line);
|
||||
}
|
||||
Reference in New Issue
Block a user