Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 May 2003 17:18:40 -0700 (PDT)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 30925 for review
Message-ID:  <200305110018.h4B0IeKJ021938@repoman.freebsd.org>

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

Change 30925 by marcel@marcel_nfs on 2003/05/10 17:18:23

	Make disabled FP traps fatal while in kernel mode. While here,
	fix a debug printf (s/cpu/cpup/) and compile them out by
	default.

Affected files ...

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

Differences ...

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

@@ -536,10 +536,16 @@
 		struct pcb *pcb;
 		struct thread *thr;
 
+		/* Always fatal in kernel. Should never happen. */
+		if (!user)
+			goto dopanic;
+
 		pcb = td->td_pcb;
 		pcpu = pcb->pcb_fpcpu;
 
+#if 0
 		printf("XXX: td %p: highfp on cpu %p\n", td, pcpu);
+#endif
 
 		/*
 		 * The pcpu variable holds the address of the per-CPU
@@ -584,7 +590,9 @@
 
 		thr = PCPU_GET(fpcurthread);
 
-		printf("XXX: cpu %p: highfp belongs to td %p\n", pcpu, thr);
+#if 0
+		printf("XXX: cpu %p: highfp belongs to td %p\n", pcpup, thr);
+#endif
 
 		/*
 		 * The thr variable holds the thread that owns the high FP



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