[xtensa-cvscommit] linux/include/asm-xtensa sigcontext.h,1.2,1.3
Brought to you by:
zankel
|
From: <joe...@us...> - 2003-04-23 23:20:00
|
Update of /cvsroot/xtensa/linux/include/asm-xtensa
In directory sc8-pr-cvs1:/tmp/cvs-serv31547/include/asm-xtensa
Modified Files:
sigcontext.h
Log Message:
Save and restore coprocessor state as needed when handling signals.
Index: sigcontext.h
===================================================================
RCS file: /cvsroot/xtensa/linux/include/asm-xtensa/sigcontext.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** sigcontext.h 7 Feb 2003 02:03:34 -0000 1.2
--- sigcontext.h 23 Apr 2003 23:19:56 -0000 1.3
***************
*** 15,18 ****
--- 15,24 ----
#include <xtensa/config/core.h>
+ #include <asm/cpextra.h>
+
+
+ struct _cpstate {
+ unsigned char _cpstate[TOTAL_CPEXTRA_SIZE];
+ };
struct sigcontext {
***************
*** 31,37 ****
unsigned long sc_sar;
unsigned long sc_regfile[XCHAL_NUM_AREGS - 16];
! #if (XCHAL_EXTRA_SA_SIZE > 0)
! unsigned char sc_extra[(XCHAL_EXTRA_SA_SIZE+15)&(~15)];
! #endif /* (XCHAL_EXTRA_SA_SIZE > 0) */
};
--- 37,41 ----
unsigned long sc_sar;
unsigned long sc_regfile[XCHAL_NUM_AREGS - 16];
! struct _cpstate *sc_cpstate;
};
|