PERFORCE change 30563 for review

Marcel Moolenaar marcel at FreeBSD.org
Sun May 4 17:07:13 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=30563

Change 30563 by marcel at marcel_nfs on 2003/05/04 17:06:50

	Add two debugging printfs to help diagnose if we
	have processes using the high FP. Since IA32
	process will use the high FP by definition, this
	also comes in handy for debuggin IA32 support.

Affected files ...

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

Differences ...

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

@@ -534,6 +534,8 @@
 		pcb = td->td_pcb;
 		pcpu = pcb->pcb_fpcpu;
 
+		printf("XXX: td %p: highfp on cpu %p\n", td, pcpu);
+
 		/*
 		 * The pcpu variable holds the address of the per-CPU
 		 * structure of the CPU currently holding this threads
@@ -577,6 +579,8 @@
 
 		thr = PCPU_GET(fpcurthread);
 
+		printf("XXX: cpu %p: highfp belongs to td %p\n", pcpu, thr);
+
 		/*
 		 * The thr variable holds the thread that owns the high FP
 		 * registers currently on this CPU. Free this CPU so that


More information about the p4-projects mailing list