svn commit: r271181 - head/sys/arm/arm

Andrew Turner andrew at FreeBSD.org
Fri Sep 5 19:00:31 UTC 2014


Author: andrew
Date: Fri Sep  5 19:00:30 2014
New Revision: 271181
URL: http://svnweb.freebsd.org/changeset/base/271181

Log:
  Add the virtual timer irq to the list of interrupts we enable on secondary
  cores.

Modified:
  head/sys/arm/arm/gic.c

Modified: head/sys/arm/arm/gic.c
==============================================================================
--- head/sys/arm/arm/gic.c	Fri Sep  5 18:11:39 2014	(r271180)
+++ head/sys/arm/arm/gic.c	Fri Sep  5 19:00:30 2014	(r271181)
@@ -166,7 +166,10 @@ gic_init_secondary(void)
 	/* Enable interrupt distribution */
 	gic_d_write_4(GICD_CTLR, 0x01);
 
-	/* Activate IRQ 29-30, ie private timer (secure & non-secure) IRQs */
+	/*
+	 * Activate the timer interrupts: virtual, secure, and non-secure.
+	 */
+	gic_d_write_4(GICD_ISENABLER(27 >> 5), (1UL << (27 & 0x1F)));
 	gic_d_write_4(GICD_ISENABLER(29 >> 5), (1UL << (29 & 0x1F)));
 	gic_d_write_4(GICD_ISENABLER(30 >> 5), (1UL << (30 & 0x1F)));
 }


More information about the svn-src-all mailing list