diff options
Diffstat (limited to 'src/kernel/lib/std.cpp')
-rw-r--r-- | src/kernel/lib/std.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/kernel/lib/std.cpp b/src/kernel/lib/std.cpp new file mode 100644 index 0000000..7ab4f64 --- /dev/null +++ b/src/kernel/lib/std.cpp @@ -0,0 +1,12 @@ +#include "std.h" +#include "core/sys.h" +#include "core/monitor.h" + +int errno = 0; + +void abort() { + monitor_write("\n\n ABORT - errno: "); + monitor_writeDec(errno); + monitor_write("\n"); + PANIC("abort() called, probably a memory manager failure."); +} |