PERFORCE change 30925 for review
Marcel Moolenaar
marcel at FreeBSD.org
Sat May 10 17:18:42 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=30925
Change 30925 by marcel at 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
More information about the p4-projects
mailing list