Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 Slight update to comment and KNF it while...



details:   https://anonhg.NetBSD.org/src/rev/64d0b517e6d7
branches:  trunk
changeset: 996692:64d0b517e6d7
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Feb 06 13:20:29 2019 +0000

description:
Slight update to comment and KNF it while I'm here

diffstat:

 sys/arch/arm/arm32/arm32_kvminit.c |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r e7792a7cf954 -r 64d0b517e6d7 sys/arch/arm/arm32/arm32_kvminit.c
--- a/sys/arch/arm/arm32/arm32_kvminit.c        Wed Feb 06 13:15:59 2019 +0000
+++ b/sys/arch/arm/arm32/arm32_kvminit.c        Wed Feb 06 13:20:29 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arm32_kvminit.c,v 1.49 2019/02/04 13:08:43 skrll Exp $ */
+/*     $NetBSD: arm32_kvminit.c,v 1.50 2019/02/06 13:20:29 skrll Exp $ */
 
 /*
  * Copyright (c) 2002, 2003, 2005  Genetec Corporation.  All rights reserved.
@@ -127,7 +127,7 @@
 #include "opt_multiprocessor.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arm32_kvminit.c,v 1.49 2019/02/04 13:08:43 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arm32_kvminit.c,v 1.50 2019/02/06 13:20:29 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -831,9 +831,11 @@
                }
        }
 
-       // The amount we can direct is limited by the start of the
-       // virtual part of the kernel address space.  Don't overrun
-       // into it.
+       /*
+        * The amount we can direct map is limited by the start of the
+        * virtual part of the kernel address space.  Don't overrun
+        * into it.
+        */
        if (mapallmem_p && cur_pv.pv_va + cur_pv.pv_size > kernel_vm_base) {
                cur_pv.pv_size = kernel_vm_base - cur_pv.pv_va;
        }



Home | Main Index | Thread Index | Old Index