svn commit: trunk/uClibc/libc/sysdeps/linux/sh/sys

jocke at uclibc.org jocke at uclibc.org
Wed Jun 13 16:23:59 UTC 2007


Author: jocke
Date: 2007-06-13 09:23:59 -0700 (Wed, 13 Jun 2007)
New Revision: 18817

Log:
Carmelo AMOROSO <carmelo.amoroso at st.com> writes:
Hi All,
this patch fixes a mismatch in ucontext struct between uClibc and kernel.
In this way a signal handler installed by sigaction can access
to the whole machine state correctly.
This can be applied both to trunk and nptl branch


Modified:
   trunk/uClibc/libc/sysdeps/linux/sh/sys/ucontext.h


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/sh/sys/ucontext.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/sh/sys/ucontext.h	2007-06-13 12:49:46 UTC (rev 18816)
+++ trunk/uClibc/libc/sysdeps/linux/sh/sys/ucontext.h	2007-06-13 16:23:59 UTC (rev 18817)
@@ -87,13 +87,25 @@
 /* Context to describe whole processor state.  */
 typedef struct
   {
+    unsigned int oldmask;
+	
+    /* CPU registers */
     gregset_t gregs;
+    unsigned int pc;
+    unsigned int pr;
+    unsigned int sr;
+    unsigned int gbr;
+    unsigned int mach;
+    unsigned int macl;
+
+#ifdef __CONFIG_SH4__
+    /* FPU registers */
     fpregset_t fpregs;
     fpregset_t xfpregs;
     unsigned int fpscr;
     unsigned int fpul;
-    unsigned int macl;
-    unsigned int mach;
+    unsigned int ownedfp;
+#endif	
   } mcontext_t;
 
 /* Userlevel context.  */




More information about the uClibc-cvs mailing list