|
Kernelite 0.1.0
Kernelite is a minimalist, educational operating system kernel built from scratch. The project aims to recreate core components of the Linux architecture to explore the fundamentals of operating system design and hardware-software interaction.
|
Implementation of error code to string translation. More...
#include "error/error_strings.h"
Functions | |
| const char * | error_to_string (long code) |
| Converts a numeric error code into a human-readable string. | |
Implementation of error code to string translation.
Provides the run-time mapping from numeric kernel error codes to human- readable messages used by diagnostic subsystems.
| const char * error_to_string | ( | long | code | ) |
Converts a numeric error code into a human-readable string.
This function maps internal kernel error constants (e.g., ERROR_CODE_NOT_EL1) to descriptive string literals. It is primarily used by the panic handler to provide diagnostic feedback over UART when a fatal error occurs.
| code | The numeric error code triggered by the kernel or bootloader. |