/* * Copyright (c) 2021, James Mintram * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include namespace Prekernel { [[noreturn]] void panic(const char* msg) { auto& uart = Prekernel::UART::the(); if (msg) { uart.print_str(msg); } Kernel::halt(); } }