fix the copy impl for Registers

This commit is contained in:
edef 2015-04-15 01:23:33 -04:00
parent 884496c6b9
commit d06e7c7cdd
1 changed files with 2 additions and 2 deletions

View File

@ -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")