Module Name: src Committed By: cliff Date: Thu Apr 14 05:16:28 UTC 2011
Modified Files: src/sys/arch/mips/rmi: rmixl_intr.h Log Message: - add compile time check in case NIPIS ever exceeds number of available vectors To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/mips/rmi/rmixl_intr.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/mips/rmi/rmixl_intr.h diff -u src/sys/arch/mips/rmi/rmixl_intr.h:1.2 src/sys/arch/mips/rmi/rmixl_intr.h:1.3 --- src/sys/arch/mips/rmi/rmixl_intr.h:1.2 Sun Feb 20 07:48:37 2011 +++ src/sys/arch/mips/rmi/rmixl_intr.h Thu Apr 14 05:16:28 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: rmixl_intr.h,v 1.2 2011/02/20 07:48:37 matt Exp $ */ +/* $NetBSD: rmixl_intr.h,v 1.3 2011/04/14 05:16:28 cliff Exp $ */ /*- * Copyright (c) 2010 The NetBSD Foundation, Inc. * All rights reserved. @@ -56,7 +56,12 @@ /* * vectors (0 <= vec < 8) are CAUSE[8..15] (including softintrs and count/compare) * vectors (8 <= vec < 31) are for other non-IRT based interrupts + * we use one for FMN, and each IPI currently gets own vector; + * if NIPIS >= (32 - 8 - 1), then redesign so IPIs share vector(s) */ +#if NIPIS >= 23 +# error too many IPIs +#endif #define RMIXL_INTRVEC_IPI 8 #define RMIXL_INTRVEC_FMN (RMIXL_INTRVEC_IPI + NIPIS)