From 5f1763ec87503527583cb1a7c6deb73604db0dfc Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Wed, 9 Dec 2020 23:15:14 -0700 Subject: Can read from the A/C remote control! --- src/kern/stdlibrepl.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/kern/stdlibrepl.c') 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 -- cgit