svn commit: r198444 - head/sys/powerpc/powermac

Nathan Whitehorn nwhitehorn at FreeBSD.org
Sat Oct 24 18:31:22 UTC 2009


Author: nwhitehorn
Date: Sat Oct 24 18:31:22 2009
New Revision: 198444
URL: http://svn.freebsd.org/changeset/base/198444

Log:
  Allow Heathrow-based machines to boot a kernel containing option SMP
  without panicing.

Modified:
  head/sys/powerpc/powermac/hrowpic.c

Modified: head/sys/powerpc/powermac/hrowpic.c
==============================================================================
--- head/sys/powerpc/powermac/hrowpic.c	Sat Oct 24 12:59:29 2009	(r198443)
+++ head/sys/powerpc/powermac/hrowpic.c	Sat Oct 24 18:31:22 2009	(r198444)
@@ -182,7 +182,13 @@ hrowpic_toggle_irq(struct hrowpic_softc 
 	u_int roffset;
 	u_int rbit;
 
-	KASSERT((irq > 0) && (irq < HROWPIC_IRQMAX), ("en irq out of range"));
+	KASSERT((irq > 0) && (irq <= HROWPIC_IRQMAX), ("en irq out of range"));
+
+	/*
+	 * Humor the SMP layer if it wants to set up an IPI handler.
+	 */
+	if (irq == HROWPIC_IRQMAX)
+		return;
 
 	/*
 	 * Calculate prim/sec register bank for the IRQ, update soft copy,


More information about the svn-src-all mailing list