Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Sep 2010 14:25:08 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r212556 - head/sys/powerpc/powerpc
Message-ID:  <201009131425.o8DEP89A006432@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



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