patch-2.4.21 linux-2.4.21/include/asm-ia64/sal.h

Next file: linux-2.4.21/include/asm-ia64/scatterlist.h
Previous file: linux-2.4.21/include/asm-ia64/processor.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/include/asm-ia64/sal.h linux-2.4.21/include/asm-ia64/sal.h
@@ -38,9 +38,12 @@
 
 # define SAL_CALL(result,args...) do {			\
 	unsigned long flags;				\
+	struct ia64_fpreg fr[6];                        \
+	ia64_save_scratch_fpregs(fr);                   \
 	spin_lock_irqsave(&sal_lock, flags);		\
 	__SAL_CALL(result,args);			\
 	spin_unlock_irqrestore(&sal_lock, flags);	\
+	ia64_load_scratch_fpregs(fr);                   \
 } while (0)
 
 #define SAL_SET_VECTORS			0x01000000

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)