svn commit: r277330 - projects/arm_intrng/sys/arm/arm
Andrew Turner
andrew at FreeBSD.org
Sun Jan 18 18:02:13 UTC 2015
Author: andrew
Date: Sun Jan 18 18:02:12 2015
New Revision: 277330
URL: https://svnweb.freebsd.org/changeset/base/277330
Log:
Get release_aps working with ARM_INTRNG disabled
Modified:
projects/arm_intrng/sys/arm/arm/mp_machdep.c
Modified: projects/arm_intrng/sys/arm/arm/mp_machdep.c
==============================================================================
--- projects/arm_intrng/sys/arm/arm/mp_machdep.c Sun Jan 18 17:43:00 2015 (r277329)
+++ projects/arm_intrng/sys/arm/arm/mp_machdep.c Sun Jan 18 18:02:12 2015 (r277330)
@@ -325,6 +325,10 @@ release_aps(void *dummy __unused)
if (mp_ncpus == 1)
return;
+#ifdef ARM_INTRNG
+ start = 0;
+ end = ARM_IPI_COUNT - 1;
+#else
#ifdef IPI_IRQ_START
start = IPI_IRQ_START;
#ifdef IPI_IRQ_END
@@ -333,8 +337,9 @@ release_aps(void *dummy __unused)
end = IPI_IRQ_START;
#endif
#endif
+#endif
- for (int i = 0; i < ARM_IPI_COUNT; i++) {
+ for (int i = start; i <= end; i++) {
/*
* IPI handler
*/
@@ -350,6 +355,7 @@ release_aps(void *dummy __unused)
#else
arm_setup_irqhandler("ipi", ipi_handler, NULL, (void *)i, i,
INTR_TYPE_MISC | INTR_EXCL, NULL);
+
/* Enable ipi */
arm_unmask_irq(i);
#endif
More information about the svn-src-projects
mailing list