Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/fdt KNF



details:   https://anonhg.NetBSD.org/src/rev/8637381f5f89
branches:  trunk
changeset: 371231:8637381f5f89
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Sep 30 06:36:28 2022 +0000

description:
KNF

diffstat:

 sys/arch/evbarm/fdt/fdt_machdep.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 89155a1375fd -r 8637381f5f89 sys/arch/evbarm/fdt/fdt_machdep.c
--- a/sys/arch/evbarm/fdt/fdt_machdep.c Fri Sep 30 06:23:58 2022 +0000
+++ b/sys/arch/evbarm/fdt/fdt_machdep.c Fri Sep 30 06:36:28 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdt_machdep.c,v 1.93 2022/09/28 05:54:24 skrll Exp $ */
+/* $NetBSD: fdt_machdep.c,v 1.94 2022/09/30 06:36:28 skrll Exp $ */
 
 /*-
  * Copyright (c) 2015-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdt_machdep.c,v 1.93 2022/09/28 05:54:24 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdt_machdep.c,v 1.94 2022/09/30 06:36:28 skrll Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_bootconfig.h"
@@ -322,7 +322,7 @@
 
        const vaddr_t voff = start & PAGE_MASK;
 
-       va = uvm_km_alloc(kernel_map, *psize, 0, UVM_KMF_VAONLY|UVM_KMF_NOWAIT);
+       va = uvm_km_alloc(kernel_map, *psize, 0, UVM_KMF_VAONLY | UVM_KMF_NOWAIT);
        if (va == 0) {
                printf("Failed to allocate VA for %s\n", purpose);
                return NULL;
@@ -330,7 +330,7 @@
        ptr = (void *)(va + voff);
 
        for (pa = startpa; pa < endpa; pa += PAGE_SIZE, va += PAGE_SIZE)
-               pmap_kenter_pa(va, pa, VM_PROT_READ|VM_PROT_WRITE, 0);
+               pmap_kenter_pa(va, pa, VM_PROT_READ | VM_PROT_WRITE, 0);
        pmap_update(pmap_kernel());
 
        return ptr;



Home | Main Index | Thread Index | Old Index