1
0
Fork 0

add AVX registers to clobbers, do some formatting

cover ALL THE REGISTERS. also added rbp, rsp in a comment for
completeness.
This commit is contained in:
edef 2015-01-14 09:03:30 +01:00
parent 299a0a5d98
commit 40d0923704
1 changed files with 6 additions and 4 deletions

View File

@ -19,10 +19,12 @@ pub unsafe fn swap(regs: &mut Registers) {
asm!(include_str!("swap.s")
:
: "{rdi}" (&mut regs.rsp)
: "rax", "rbx", "rcx", "rdx", "rsi", "rdi",
"r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15",
"xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7",
"xmm8", "xmm9", "xmm10", "xmm11", "xmm12", "xmm13", "xmm14", "xmm15",
: "rax", "rbx", "rcx", "rdx", "rsi", "rdi", //"rbp", "rsp",
"r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15",
"xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7",
"xmm8", "xmm9", "xmm10", "xmm11", "xmm12", "xmm13", "xmm14", "xmm15",
"xmm16", "xmm17", "xmm18", "xmm19", "xmm20", "xmm21", "xmm22", "xmm23",
"xmm24", "xmm25", "xmm26", "xmm27", "xmm28", "xmm29", "xmm30", "xmm31"
"cc"
: "volatile");
}