PERFORCE change 38836 for review
Peter Wemm
peter at FreeBSD.org
Mon Sep 29 19:37:02 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=38836
Change 38836 by peter at 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);
More information about the p4-projects
mailing list