This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: sparc signal handler


I'm committing the appended patch.  It changes sparc-signal.h to
correctly conform to the prototype given for signal handlers on
Solaris 2.[56].

1999-09-24  Tom Tromey  <tromey@cygnus.com>

        * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
        `void *'.
        (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.

Tom

Index: include/sparc-signal.h
===================================================================
RCS file: /cvs/java/libgcj/libjava/include/sparc-signal.h,v
retrieving revision 1.3
diff -u -r1.3 sparc-signal.h
--- sparc-signal.h	1999/05/21 06:03:30	1.3
+++ sparc-signal.h	1999/09/27 20:56:23
@@ -18,7 +18,7 @@
 #define HANDLE_FPE 1
 
 #define SIGNAL_HANDLER(_name) 						\
-static void _name (int _dummy, siginfo_t *_info, ucontext_t *_context)
+static void _name (int _dummy, siginfo_t *_info, void *arg)
 
 #define FLUSH_REGISTER_WINDOWS					\
   asm volatile ("ta 3");
@@ -26,6 +26,7 @@
 #define MAKE_THROW_FRAME					\
 do								\
 {								\
+  ucontext_t *_context = (ucontext_t *) arg;                    \
   (void)_dummy;							\
   (void)_info;							\
   register int sp = _context->uc_mcontext.gregs[REG_SP];	\

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]