diff options
Diffstat (limited to 'sys/arch/arm/xscale/pxa2x0_intr.h')
-rw-r--r-- | sys/arch/arm/xscale/pxa2x0_intr.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/sys/arch/arm/xscale/pxa2x0_intr.h b/sys/arch/arm/xscale/pxa2x0_intr.h index 28285b796b4..589f97763d0 100644 --- a/sys/arch/arm/xscale/pxa2x0_intr.h +++ b/sys/arch/arm/xscale/pxa2x0_intr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pxa2x0_intr.h,v 1.10 2007/05/15 05:26:44 miod Exp $ */ +/* $OpenBSD: pxa2x0_intr.h,v 1.11 2007/05/19 15:47:16 miod Exp $ */ /* $NetBSD: pxa2x0_intr.h,v 1.4 2003/07/05 06:53:08 dogcow Exp $ */ /* Derived from i80321_intr.h */ @@ -103,8 +103,23 @@ void *pxa2x0_intr_establish(int irqno, int level, int (*func)(void *), void pxa2x0_intr_disestablish(void *cookie); const char *pxa2x0_intr_string(void *cookie); -#endif /* ! _LOCORE */ +#ifdef DIAGNOSTIC +/* + * Although this function is implemented in MI code, it must be in this MD + * header because we don't want this header to include MI includes. + */ +void splassert_fail(int, int, const char *); +extern int splassert_ctl; +void pxa2x0_splassert_check(int, const char *); +#define splassert(__wantipl) do { \ + if (splassert_ctl > 0) { \ + pxa2x0_splassert_check(__wantipl, __func__); \ + } \ +} while (0) +#else +#define splassert(wantipl) do { /* nothing */ } while (0) +#endif -#define splassert(wantipl) do { /* nada */ } while (0) +#endif /* ! _LOCORE */ #endif /* _PXA2X0_INTR_H_ */ |