Module Name:    src
Committed By:   skrll
Date:           Sat Aug 13 06:59:56 UTC 2022

Modified Files:
        src/sys/arch/x86/x86: bus_dma.c

Log Message:
Fix an inverted KASSERTMSG test from the #ifdef DIAGNOSTIC panic -> KASSERT
conversion.


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/sys/arch/x86/x86/bus_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/x86/x86/bus_dma.c
diff -u src/sys/arch/x86/x86/bus_dma.c:1.87 src/sys/arch/x86/x86/bus_dma.c:1.88
--- src/sys/arch/x86/x86/bus_dma.c:1.87	Fri Aug 12 15:01:26 2022
+++ src/sys/arch/x86/x86/bus_dma.c	Sat Aug 13 06:59:56 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: bus_dma.c,v 1.87 2022/08/12 15:01:26 riastradh Exp $	*/
+/*	$NetBSD: bus_dma.c,v 1.88 2022/08/13 06:59:56 skrll Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2007, 2020 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.87 2022/08/12 15:01:26 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.88 2022/08/13 06:59:56 skrll Exp $");
 
 /*
  * The following is included because _bus_dma_uiomove is derived from
@@ -1198,7 +1198,7 @@ _bus_dmamem_unmap(bus_dma_tag_t t, void 
 	pt_entry_t *pte, opte;
 	vaddr_t va, sva, eva;
 
-	KASSERTMSG((uintptr_t)kva & PGOFSET, "kva=%p", kva);
+	KASSERTMSG(((uintptr_t)kva & PGOFSET) == 0, "kva=%p", kva);
 
 	size = round_page(size);
 	sva = (vaddr_t)kva;

Reply via email to