From 40d09237046d7eeb949b72da75dcb2b26ab5292d Mon Sep 17 00:00:00 2001 From: edef Date: Wed, 14 Jan 2015 09:03:30 +0100 Subject: [PATCH] add AVX registers to clobbers, do some formatting cover ALL THE REGISTERS. also added rbp, rsp in a comment for completeness. --- src/arch.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/arch.rs b/src/arch.rs index 742818e..2283682 100644 --- a/src/arch.rs +++ b/src/arch.rs @@ -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"); }