x86/registers/bits32/
mod.rs1pub mod eflags;
10pub mod paging;
11pub mod task;
13
14#[cfg(target_arch = "x86")]
15use core::arch::asm;
16
17#[cfg(target_arch = "x86")]
18#[inline(always)]
19pub unsafe fn stack_jmp(stack: *mut (), ip: *const ()) -> ! {
20 unsafe {
21 asm!("movl {0}, %esp; jmp {1}", in(reg) stack, in(reg) ip, options(att_syntax));
22 }
23
24 unreachable!()
25}
26
27#[cfg(not(any(doc, target_arch = "x86")))]
30pub unsafe fn stack_jmp(_stack: *mut (), _ip: *const ()) -> ! {
31 unimplemented!()
32}