⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module test_tasks

Module test_tasks 

Source
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