svn commit: r212556 - head/sys/powerpc/powerpc
Alexander Motin
mav at FreeBSD.org
Mon Sep 13 14:25:08 UTC 2010
Author: mav
Date: Mon Sep 13 14:25:07 2010
New Revision: 212556
URL: http://svn.freebsd.org/changeset/base/212556
Log:
Change call order to enable interrupts only after timer being programmed.
Submitted by: nwhitehorn
Modified:
head/sys/powerpc/powerpc/mp_machdep.c
Modified: head/sys/powerpc/powerpc/mp_machdep.c
==============================================================================
--- head/sys/powerpc/powerpc/mp_machdep.c Mon Sep 13 13:59:28 2010 (r212555)
+++ head/sys/powerpc/powerpc/mp_machdep.c Mon Sep 13 14:25:07 2010 (r212556)
@@ -91,12 +91,12 @@ machdep_ap_bootstrap(void)
PCPU_SET(curthread, PCPU_GET(idlethread));
PCPU_SET(curpcb, curthread->td_pcb);
- /* Let the DEC and external interrupts go */
- mtmsr(mfmsr() | PSL_EE);
-
/* Start per-CPU event timers. */
cpu_initclocks_ap();
+ /* Let the DEC and external interrupts go */
+ mtmsr(mfmsr() | PSL_EE);
+
/* Announce ourselves awake, and enter the scheduler */
sched_throw(NULL);
}
More information about the svn-src-head
mailing list