Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/dreamcast/dev/maple cv_init() must be done before c...
details: https://anonhg.NetBSD.org/src/rev/212a5d896c31
branches: trunk
changeset: 451111:212a5d896c31
user: ryo <ryo%NetBSD.org@localhost>
date: Mon May 06 17:16:41 2019 +0000
description:
cv_init() must be done before calling maple_scanbus().
ok tsutsui@
diffstat:
sys/arch/dreamcast/dev/maple/maple.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (36 lines):
diff -r 327b60dd7482 -r 212a5d896c31 sys/arch/dreamcast/dev/maple/maple.c
--- a/sys/arch/dreamcast/dev/maple/maple.c Mon May 06 17:12:50 2019 +0000
+++ b/sys/arch/dreamcast/dev/maple/maple.c Mon May 06 17:16:41 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: maple.c,v 1.52 2015/12/06 02:04:10 tsutsui Exp $ */
+/* $NetBSD: maple.c,v 1.53 2019/05/06 17:16:41 ryo Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: maple.c,v 1.52 2015/12/06 02:04:10 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: maple.c,v 1.53 2019/05/06 17:16:41 ryo Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -246,14 +246,14 @@
MAPLE_ENABLE = 1;
- maple_polling = 1;
- maple_scanbus(sc);
-
mutex_init(&sc->sc_dma_lock, MUTEX_DEFAULT, IPL_MAPLE);
cv_init(&sc->sc_dma_cv, device_xname(self));
mutex_init(&sc->sc_event_lock, MUTEX_DEFAULT, IPL_SOFTCLOCK);
cv_init(&sc->sc_event_cv, device_xname(self));
+ maple_polling = 1;
+ maple_scanbus(sc);
+
callout_init(&sc->maple_callout_ch, 0);
sc->sc_intrhand = sysasic_intr_establish(SYSASIC_EVENT_MAPLE_DMADONE,
Home |
Main Index |
Thread Index |
Old Index