Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Sep 2003 19:37:01 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 38836 for review
Message-ID:  <200309300237.h8U2b1tj031160@repoman.freebsd.org>

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

Change 38836 by peter@peter_hammer on 2003/09/29 19:36:47

	encapsulate some more lazy switch stuff

Affected files ...

.. //depot/projects/hammer/sys/amd64/amd64/apic_vector.s#5 edit
.. //depot/projects/hammer/sys/amd64/amd64/mp_machdep.c#9 edit

Differences ...

==== //depot/projects/hammer/sys/amd64/amd64/apic_vector.s#5 (text+ko) ====

@@ -354,6 +354,7 @@
 	POP_FRAME			/* Why not doreti? */
 	iretq
 	
+#ifdef LAZY_SWITCH
 /*
  * Clean up when we lose out on the lazy context switch optimization.
  * ie: when we are about to release a PTD but a cpu is still borrowing it.
@@ -366,4 +367,5 @@
 	movl	$0, LA_EOI(%rax)	/* End Of Interrupt to APIC */
 	POP_FRAME			/* Why not doreti? */
 	iretq
+#endif
 #endif /* SMP */

==== //depot/projects/hammer/sys/amd64/amd64/mp_machdep.c#9 (text+ko) ====

@@ -258,8 +258,10 @@
 	/* Install an inter-CPU IPI for forwarding statclock() */
 	setidt(IPI_STATCLOCK, IDTVEC(statclock), SDT_SYSIGT, SEL_KPL, 0);
 	
+#ifdef LAZY_SWITCH
 	/* Install an inter-CPU IPI for lazy pmap release */
 	setidt(IPI_LAZYPMAP, IDTVEC(lazypmap), SDT_SYSIGT, SEL_KPL, 0);
+#endif
 
 	/* Install an inter-CPU IPI for all-CPU rendezvous */
 	setidt(IPI_RENDEZVOUS, IDTVEC(rendezvous), SDT_SYSIGT, SEL_KPL, 0);



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