forked from M-Labs/libfringe
fix the copy impl for Registers
This commit is contained in:
parent
884496c6b9
commit
d06e7c7cdd
|
@ -8,12 +8,12 @@ use stack::Stack;
|
|||
#[allow(non_camel_case_types)]
|
||||
pub type uintptr_t = u64;
|
||||
|
||||
#[allow(raw_pointer_derive)]
|
||||
#[derive(Copy, Clone)]
|
||||
pub struct Registers {
|
||||
rsp: *mut uintptr_t
|
||||
}
|
||||
|
||||
impl Copy for Registers {}
|
||||
|
||||
#[inline(always)]
|
||||
pub unsafe fn swap(regs: &mut Registers) {
|
||||
asm!(include_str!("swap.s")
|
||||
|
|
Loading…
Reference in New Issue