Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Apr 2003 12:59:07 -0700 (PDT)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 29810 for review
Message-ID:  <200304261959.h3QJx7fp055687@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=29810

Change 29810 by marcel@marcel_nfs on 2003/04/26 12:58:17

	ntpd(8) has an unaligned memory reference, but we're not
	yet fixing it up, as it may involve unwinding and the likes.
	Give a SIGBUS instead of panicing :-)

Affected files ...

.. //depot/projects/ia64_epc/sys/ia64/ia64/trap.c#15 edit

Differences ...

==== //depot/projects/ia64_epc/sys/ia64/ia64/trap.c#15 (text+ko) ====

@@ -335,9 +335,8 @@
 	struct proc *p;
 	struct thread *td;
 	u_int64_t ucode;
-	int i;
+	int i, user;
 	u_int sticks;
-	int user;
 
 	user = ((framep->tf_special.psr & IA64_PSR_CPL) == IA64_PSR_CPL_USER);
 
@@ -376,17 +375,19 @@
 		 * signalling is appropriate (based on system-wide
 		 * and per-process unaligned-access-handling flags).
 		 */
-#if 0
 		if (user) {
+#if NOTYET
 			mtx_lock(&Giant);
 			i = unaligned_fixup(framep, td);
 			mtx_unlock(&Giant);
 			if (i == 0)
 				goto out;
+#else
+			i = SIGBUS;
+#endif
 			ucode = framep->tf_special.ifa;	/* VA */
 			break;
 		}
-#endif
 
 		/*
 		 * Unaligned access from kernel mode is always an error,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304261959.h3QJx7fp055687>