From 9d7b6eb70703f293b4d9881b29e7d27169ebd6a6 Mon Sep 17 00:00:00 2001 From: Eduardo Habkost Date: Wed, 20 Feb 2008 19:03:55 -0300 Subject: [PATCH] pvops-64: Include %rsi on the register clobber list for IRQ functions (REVIEWME) The IRQ functions may be C functions, and they may clobber RSI. Probably the best option will be saving it to avoid clobbering it after the IRQ functions' call places are patched. Clobbering too much registers when most IRQ functions will use none on few of them isn't a good idea. Signed-off-by: Eduardo Habkost --- include/asm-x86/paravirt.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/asm-x86/paravirt.h b/include/asm-x86/paravirt.h index 20a930f..784ea98 100644 --- a/include/asm-x86/paravirt.h +++ b/include/asm-x86/paravirt.h @@ -1291,8 +1291,8 @@ extern struct paravirt_patch_site __parainstructions[], * caller saved registers but the argument parameter */ #define PV_SAVE_REGS "pushq %%rdi;" #define PV_RESTORE_REGS "popq %%rdi;" -#define PV_EXTRA_CLOBBERS EXTRA_CLOBBERS, "rcx" , "rdx" -#define PV_VEXTRA_CLOBBERS EXTRA_CLOBBERS, "rdi", "rcx" , "rdx" +#define PV_EXTRA_CLOBBERS EXTRA_CLOBBERS, "rsi", "rcx" , "rdx" +#define PV_VEXTRA_CLOBBERS EXTRA_CLOBBERS, "rdi", "rsi", "rcx" , "rdx" #define PV_FLAGS_ARG "D" #endif -- 1.5.4.1