Module Name: src Committed By: ryo Date: Mon May 6 17:16:41 UTC 2019
Modified Files: src/sys/arch/dreamcast/dev/maple: maple.c Log Message: cv_init() must be done before calling maple_scanbus(). ok tsutsui@ To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.53 src/sys/arch/dreamcast/dev/maple/maple.c 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/dreamcast/dev/maple/maple.c diff -u src/sys/arch/dreamcast/dev/maple/maple.c:1.52 src/sys/arch/dreamcast/dev/maple/maple.c:1.53 --- src/sys/arch/dreamcast/dev/maple/maple.c:1.52 Sun Dec 6 02:04:10 2015 +++ src/sys/arch/dreamcast/dev/maple/maple.c Mon May 6 17:16:41 2019 @@ -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 @@ mapleattach(device_t parent, device_t se 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,