diff --git a/contrib/toolchain/gcc/5x/libgcc/config/i386/kos32-app.c b/contrib/toolchain/gcc/5x/libgcc/config/i386/kos32-app.c index 94b5c0dde5..de291bb681 100644 --- a/contrib/toolchain/gcc/5x/libgcc/config/i386/kos32-app.c +++ b/contrib/toolchain/gcc/5x/libgcc/config/i386/kos32-app.c @@ -21,6 +21,14 @@ __crt_startup (void) if(!img) { + // Inform the user via BOARD that libc could not be loaded. + char *errormsg = "[ERROR] libc.dll failed to load. is /kolibrios folder configured?\n"; + while (*errormsg) { + __asm__ __volatile__("int $0x40"::"a"(63), "b"(1), "c"(*errormsg)); + ++errormsg; + } + + // Exit asm ("int $0x40" ::"a"(-1)); };