This commit is contained in:
Niklas Gollenstede
2025-10-31 22:37:36 +01:00
commit 174fe17e89
197 changed files with 79558 additions and 0 deletions

11
kernel/debug/assert.cc Normal file
View File

@@ -0,0 +1,11 @@
#include "assert.h"
#include "../arch/core.h"
#include "output.h"
[[noreturn]] void assertion_failed(const char* exp, const char* func,
const char* file, int line) {
DBG << "Assertion '" << exp << "' failed (" << func << " @ " << file << ":"
<< dec << line << ") - CPU stopped." << endl;
Core::die();
}