Crate marcel_os

Source

Modules§

Macros§

  • Prints formatted text to the screen, using the Writer’s write_fmt method.
  • Prints formatted text to the screen with a newline at the end.
  • A macro for printing to the serial port without a newline.
  • A macro for printing to the serial port with a newline.

Enums§

  • Enum representing the QEMU exit codes used to signal the result of test execution. Success signals that tests passed, while Failed indicates that at least one test failed.

Traits§

  • Trait for marking types that can be tested in the kernel test suite.

Functions§

  • 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.