pub fn create_user_test_task()Expand description
Create and schedule a minimal Ring 3 test task.
This function:
- Creates a user address space (PML4 with kernel half cloned)
- Maps a code page at USER_CODE_ADDR (RX, user-accessible)
- Maps a stack page at USER_STACK_ADDR (RW, user-accessible)
- Writes a small machine code blob into the code page
- Creates a kernel task whose entry point does IRETQ to Ring 3