Expand description
Test tasks for verifying context switching functionality
These tasks are designed to test that context switching works properly on all architectures, with special handling for AArch64’s loop limitations.
§Safety note (AArch64 UART calls)
All unsafe { uart_write_str(...) } blocks in this file perform MMIO
writes to the QEMU virt machine UART at 0x0900_0000. This address is
mapped and valid throughout kernel execution on this platform. The
function only writes bytes to the UART data register and cannot cause
memory corruption.
Functions§
- create_
test_ tasks - Create test tasks for context switching verification
- test_
task_ a - Test task A - prints messages and yields
- test_
task_ b - Test task B - prints different messages and yields