diff options
Diffstat (limited to 'src/kern/stdlibrepl.c')
-rw-r--r-- | src/kern/stdlibrepl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/kern/stdlibrepl.c b/src/kern/stdlibrepl.c index 38b8477..676b820 100644 --- a/src/kern/stdlibrepl.c +++ b/src/kern/stdlibrepl.c @@ -1,4 +1,5 @@ #include "arch.h" +#include "kern/panic.h" /* * Replacement for common stdlib functions that don't exist * on the ARM bare-metal compilation environment. @@ -48,4 +49,10 @@ int memcmp(const void* s1_, const void* s2_, size_t size) return 0; } +void __assert_func( + const char* file, int line, const char* func, const char* failedexpr) +{ + panic("Assertion failed: %s:%d in %s at %s\n", file, line, func, failedexpr); +} + #endif |