Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Fix an inverted KASSERTMSG test from the #i...
details: https://anonhg.NetBSD.org/src/rev/1ddbf53d0141
branches: trunk
changeset: 368922:1ddbf53d0141
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Aug 13 06:59:56 2022 +0000
description:
Fix an inverted KASSERTMSG test from the #ifdef DIAGNOSTIC panic -> KASSERT
conversion.
diffstat:
sys/arch/x86/x86/bus_dma.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r c12029d43d74 -r 1ddbf53d0141 sys/arch/x86/x86/bus_dma.c
--- a/sys/arch/x86/x86/bus_dma.c Sat Aug 13 06:47:41 2022 +0000
+++ b/sys/arch/x86/x86/bus_dma.c Sat Aug 13 06:59:56 2022 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index