kernel/src/klibc/klibc.c
void inline panic() {
    disable_interrupt(BOTH);
    kprintf("Kernel panic!\n");
    kprintf("\n     )                        (                     \n");
    kprintf("  ( /(                   (    )\\ )                  \n");
    kprintf("  )\\()) (  (           ( )\\  (()/(   )      (       \n");
    kprintf("|((_)\\ ))\\ )(   (     ))((_)  /(_)| /(  (   )\\  (   \n");
    kprintf("|_ ((_)((_|()\\  )\\ ) /((_)   (_)) )(_)) )\\ |(_) )\\  \n");
    kprintf("| |/ (_))  ((_)_(_/((_))| |  | _ ((_)_ _(_/((_)((_) \n");
    kprintf("  ' </ -_)| '_| ' \\)) -_) |  |  _/ _` | ' \\)) / _|  \n");
    kprintf(" _|\\_\\___||_| |_||_|\\___|_|  |_| \\__,_|_||_||_\\__|\n");

    SemihostingOSExit(-1);
    SLEEP;
}
// Currrently states the panic and stalls the machine or exits iff run within qemu with semihosting
// enabled.
Currrently states the panic and stalls the machine or exits iff run within qemu with semihosting
enabled.
Currrently states the panic and stalls the machine or exits iff run within qemu with semihosting enabled .
void inline panic() {
    disable_interrupt(BOTH);
    kprintf("Kernel panic!\n");
    kprintf("\n     )                        (                     \n");
    kprintf("  ( /(                   (    )\\ )                  \n");
    kprintf("  )\\()) (  (           ( )\\  (()/(   )      (       \n");
    kprintf("|((_)\\ ))\\ )(   (     ))((_)  /(_)| /(  (   )\\  (   \n");
    kprintf("|_ ((_)((_|()\\  )\\ ) /((_)   (_)) )(_)) )\\ |(_) )\\  \n");
    kprintf("| |/ (_))  ((_)_(_/((_))| |  | _ ((_)_ _(_/((_)((_) \n");
    kprintf("  ' </ -_)| '_| ' \\)) -_) |  |  _/ _` | ' \\)) / _|  \n");
    kprintf(" _|\\_\\___||_| |_||_|\\___|_|  |_| \\__,_|_||_||_\\__|\n");
    SemihostingOSExit(-1);
    SLEEP;
}
void inline panic ( ) { disable_interrupt ( BOTH ) ; kprintf ( " \n " ) ; kprintf ( " \n \n " ) ; kprintf ( " \\ \n " ) ; kprintf ( " \\ \\ \n " ) ; kprintf ( " \\ \\ \\ \n " ) ; kprintf ( " \\ \\ \\ \\ \n " ) ; kprintf ( " \n " ) ; kprintf ( " \\ \\ \n " ) ; kprintf ( " \\ \\ \\ \\ \\ \n " ) ; SemihostingOSExit ( -1 ) ; SLEEP ; }
Currrently states the panic and stalls the machine or exits iff run within qemu with semihosting
enabled.
Currrently states the panic and stalls the machine or exits iff run within qemu with semihosting enabled .