Module Name: src
Committed By: tsutsui
Date: Tue Apr 30 09:55:46 UTC 2024
Modified Files:
src/sys/arch/hp300/dev: dma.c
Log Message:
Fix another fatal typo that prevents dma(4) interrupts.
To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/arch/hp300/dev/dma.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/hp300/dev/dma.c
diff -u src/sys/arch/hp300/dev/dma.c:1.47 src/sys/arch/hp300/dev/dma.c:1.48
--- src/sys/arch/hp300/dev/dma.c:1.47 Tue Jan 16 07:06:59 2024
+++ src/sys/arch/hp300/dev/dma.c Tue Apr 30 09:55:45 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: dma.c,v 1.47 2024/01/16 07:06:59 thorpej Exp $ */
+/* $NetBSD: dma.c,v 1.48 2024/04/30 09:55:45 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
#include "opt_m68k_arch.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dma.c,v 1.47 2024/01/16 07:06:59 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dma.c,v 1.48 2024/04/30 09:55:45 tsutsui Exp $");
#include <machine/hp300spu.h> /* XXX param.h includes cpu.h */
@@ -276,7 +276,7 @@ dmaupdateipl(int ipl)
intr_disestablish(sc->sc_ih);
}
- if ((sc->sc_ipl == ipl) == 0) {
+ if ((sc->sc_ipl = ipl) == 0) {
/* Don't hook up a new handler. */
return;
}