Files
MentOS/mentos/inc/system/panic.h
T
2023-01-19 10:09:52 -05:00

14 lines
453 B
C

/// @file panic.h
/// @brief Functions used to manage kernel panic.
/// @copyright (c) 2014-2023 This file is distributed under the MIT License.
/// See LICENSE.md for details.
#pragma once
/// @brief Prints the given message and safely stop the execution of the kernel.
/// @param msg The message that has to be shown.
void kernel_panic(const char *msg);
/// @brief Sends a kernel panic with the given message.
#define TODO(msg) kernel_panic(#msg);