Skip to main content

do_restore_first_task

Function do_restore_first_task 

Source
pub(super) unsafe fn do_restore_first_task(
    frame_ptr: *const u64,
    fpu_ptr: *const u8,
    xcr0: u64,
) -> !
Expand description

First-task restore dispatcher. Like do_switch_context but without saving old state (there is no previous task).

ยงSafety

Caller must ensure pointers are valid and interrupts are disabled. Never returns.