Exits the QEMU virtual machine with a specific exit code.
This is typically used after tests to indicate success or failure.
A simple infinite loop that halts the CPU. This is typically used when the kernel
encounters an error or after the test suite completes.
Initializes various kernel components, including:
Handles kernel panics during tests by printing the error message to the serial console
and exiting the QEMU emulator with a failure code.
The test runner that executes a list of tests and exits with a result code.
It uses serial_print!
and serial_println!
to print test results to the serial console.
After all tests, the QEMU exit code is sent to indicate success or failure.