diff: bug fix for fault address configuration test.

Tyson Dowd trd at cs.mu.OZ.AU
Fri Mar 19 17:03:23 AEDT 1999


Hi,

Here's a quick bug fix.  I haven't tested it myself but Roman Hodek has.

===================================================================


Estimated hours taken: 0.1

Fix a bug reported by Roman Hodek <Roman.Hodek at informatik.uni-erlangen.de>.

runtime/mercury_faultaddr.h:
	Don't take the address of the sigcontext struct in
	MR_GET_FAULT_ADDR for the m68k.


cvs server: Diffing runtime
Index: runtime/mercury_faultaddr.h
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_faultaddr.h,v
retrieving revision 1.1
diff -u -r1.1 mercury_faultaddr.h
--- mercury_faultaddr.h	1998/10/02 05:35:53	1.1
+++ mercury_faultaddr.h	1999/03/19 05:42:19
@@ -26,7 +26,7 @@
 
   #define MR_GET_FAULT_ADDR(sc)					\
 	({ 								\
-		struct sigcontext *scp = (struct sigcontext *)(&sc);	\
+		struct sigcontext *scp = (struct sigcontext *) sc;	\
 		int format = (scp->sc_formatvec >> 12) & 0xf;		\
 		unsigned long *framedata = (unsigned long *)(scp + 1);	\
 		unsigned long ea; 					\
cvs server: Diffing runtime/GETOPT
cvs server: Diffing runtime/machdeps


-- 
       Tyson Dowd           # There isn't any reason why Linux can't be
                            # implemented as an enterprise computing solution.
     trd at cs.mu.oz.au        # Find out what you've been missing while you've
http://www.cs.mu.oz.au/~trd # been rebooting Windows NT. -- InfoWorld, 1998.



More information about the developers mailing list