aboutsummaryrefslogtreecommitdiff
path: root/src/bits32/mod.rs
blob: 917398c8b8c08c68c325d828d36fbcae009b84b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
pub mod eflags;
pub mod segmentation;
pub mod task;

#[inline(always)]
pub unsafe fn stack_jmp(stack: *mut (), ip: *const ()) -> ! {
    asm!("mov esp, $0; jmp $1" :: "rg"(stack), "r"(ip) :: "volatile", "intel");
    loop {}
}