[kaffe] CVS kaffe (guilhem): Netbsd 2.0 fix concerning the handling of signals.

Kaffe CVS cvs-commits at kaffe.org
Mon Jul 11 09:09:02 PDT 2005


PatchSet 6722 
Date: 2005/07/11 15:59:09
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Netbsd 2.0 fix concerning the handling of signals.

Members: 
	ChangeLog:1.4246->1.4247 
	config/i386/netbsd1/jit-md.h:1.4->1.5 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4246 kaffe/ChangeLog:1.4247
--- kaffe/ChangeLog:1.4246	Mon Jul 11 14:23:51 2005
+++ kaffe/ChangeLog	Mon Jul 11 15:59:09 2005
@@ -1,5 +1,10 @@
 2005-07-11  Guilhem Lavaux  <guilhem at kaffe.org>
 
+	* config/i386/netbsd1/jit-md.h: Updated macro to retrieve the base
+	stack pointer and not the current stack pointer.
+
+2005-07-11  Guilhem Lavaux  <guilhem at kaffe.org>
+
 	* config/i386/netbsd1/md.h,
 	config/i386/netbsd1/jit-md.h: Use old sigcontext if ucontext.h is not 
 	available.
Index: kaffe/config/i386/netbsd1/jit-md.h
diff -u kaffe/config/i386/netbsd1/jit-md.h:1.4 kaffe/config/i386/netbsd1/jit-md.h:1.5
--- kaffe/config/i386/netbsd1/jit-md.h:1.4	Mon Jul 11 14:23:53 2005
+++ kaffe/config/i386/netbsd1/jit-md.h	Mon Jul 11 15:59:16 2005
@@ -27,8 +27,8 @@
 /* Get the first exception frame from a signal handler */
 #if defined(HAVE_SYS_UCONTEXT_H)
 #define	EXCEPTIONFRAME(f, c)						\
-        (f).retbp = _UC_MACHINE_SP(((ucontext_t *)(c)));                \
-	(f).retpc = _UC_MACHINE_PC(((ucontext_t *)(c)))
+        (f).retbp = ((ucontext_t *)(c))->uc_mcontext.__gregs[_REG_EBP]; \
+	(f).retpc = 1 + _UC_MACHINE_PC(((ucontext_t *)(c)))
 #else
 #define EXCEPTIONFRAME(f, c)						\
 	(f).retbp = (c)->sc_ebp;					\



More information about the kaffe mailing list