Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbmips/cavium Add an assert to verify interrupts a...
details: https://anonhg.NetBSD.org/src/rev/67c9baaf285f
branches: trunk
changeset: 338761:67c9baaf285f
user: matt <matt%NetBSD.org@localhost>
date: Sat Jun 06 22:23:31 2015 +0000
description:
Add an assert to verify interrupts are enabled.
diffstat:
sys/arch/evbmips/cavium/autoconf.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r 72aa01100a3c -r 67c9baaf285f sys/arch/evbmips/cavium/autoconf.c
--- a/sys/arch/evbmips/cavium/autoconf.c Sat Jun 06 22:22:03 2015 +0000
+++ b/sys/arch/evbmips/cavium/autoconf.c Sat Jun 06 22:23:31 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.2 2015/05/19 00:09:02 matt Exp $ */
+/* $NetBSD: autoconf.c,v 1.3 2015/06/06 22:23:31 matt Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.2 2015/05/19 00:09:02 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.3 2015/06/06 22:23:31 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -46,7 +46,8 @@
#include <net/if_ether.h>
-#include <machine/cpu.h>
+#include <mips/cpu.h>
+#include <mips/locore.h>
#include <evbmips/cavium/octeon_uboot.h>
@@ -65,6 +66,7 @@
/* XXX need this? */
(void)spl0();
+ KDASSERT(mips_cp0_status_read() & MIPS_SR_INT_IE);
}
void
Home |
Main Index |
Thread Index |
Old Index