Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/alpha/common Fix inverted logic!!



details:   https://anonhg.NetBSD.org/src/rev/6bc4db781aea
branches:  trunk
changeset: 1020531:6bc4db781aea
user:      rin <rin%NetBSD.org@localhost>
date:      Thu Apr 15 00:11:09 2021 +0000

description:
Fix inverted logic!!

vmem_xalloc(9) should be used with VM_NOSLEEP for BUS_DMA_NOWAIT.

diffstat:

 sys/arch/alpha/common/sgmap_typedep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 41bf05f46bfc -r 6bc4db781aea sys/arch/alpha/common/sgmap_typedep.c
--- a/sys/arch/alpha/common/sgmap_typedep.c     Thu Apr 15 00:04:07 2021 +0000
+++ b/sys/arch/alpha/common/sgmap_typedep.c     Thu Apr 15 00:11:09 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sgmap_typedep.c,v 1.40 2020/10/11 00:33:30 thorpej Exp $ */
+/* $NetBSD: sgmap_typedep.c,v 1.41 2021/04/15 00:11:09 rin Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998, 2001 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: sgmap_typedep.c,v 1.40 2020/10/11 00:33:30 thorpej Exp $");
+__KERNEL_RCSID(1, "$NetBSD: sgmap_typedep.c,v 1.41 2021/04/15 00:11:09 rin Exp $");
 
 #include "opt_ddb.h"
 
@@ -138,7 +138,7 @@
 #endif
 
        const vm_flag_t vmflags = VM_INSTANTFIT |
-           ((flags & BUS_DMA_NOWAIT) ? VM_SLEEP : VM_NOSLEEP);
+           ((flags & BUS_DMA_NOWAIT) ? VM_NOSLEEP : VM_SLEEP);
 
        error = vmem_xalloc(sgmap->aps_arena, sgvalen,
                            alignment,          /* alignment */



Home | Main Index | Thread Index | Old Index