Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm/pmap KNF. Add some whitespace to the TLBINV_MAP mac...



details:   https://anonhg.NetBSD.org/src/rev/c5f586255ff8
branches:  trunk
changeset: 937445:c5f586255ff8
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Aug 19 06:11:49 2020 +0000

description:
KNF.  Add some whitespace to the TLBINV_MAP macro and tlb_invalidate_op
enum.

diffstat:

 sys/uvm/pmap/pmap_tlb.c |  14 +++++++-------
 sys/uvm/pmap/pmap_tlb.h |  12 ++++++------
 2 files changed, 13 insertions(+), 13 deletions(-)

diffs (61 lines):

diff -r 473ab2fe9830 -r c5f586255ff8 sys/uvm/pmap/pmap_tlb.c
--- a/sys/uvm/pmap/pmap_tlb.c   Wed Aug 19 06:10:06 2020 +0000
+++ b/sys/uvm/pmap/pmap_tlb.c   Wed Aug 19 06:11:49 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_tlb.c,v 1.38 2020/08/19 06:08:27 skrll Exp $      */
+/*     $NetBSD: pmap_tlb.c,v 1.39 2020/08/19 06:11:49 skrll Exp $      */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap_tlb.c,v 1.38 2020/08/19 06:08:27 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_tlb.c,v 1.39 2020/08/19 06:11:49 skrll Exp $");
 
 /*
  * Manages address spaces in a TLB.
@@ -626,11 +626,11 @@
  * can be loaded in a single instruction.
  */
 #define        TLBINV_MAP(op, nobody, one, alluser, allkernel, all)    \
-       ((((   (nobody) << 3*TLBINV_NOBODY)                     \
-        | (      (one) << 3*TLBINV_ONE)                        \
-        | (  (alluser) << 3*TLBINV_ALLUSER)                    \
-        | ((allkernel) << 3*TLBINV_ALLKERNEL)                  \
-        | (      (all) << 3*TLBINV_ALL)) >> 3*(op)) & 7)
+       ((((   (nobody) << 3 * TLBINV_NOBODY)                   \
+        | (      (one) << 3 * TLBINV_ONE)                      \
+        | (  (alluser) << 3 * TLBINV_ALLUSER)                  \
+        | ((allkernel) << 3 * TLBINV_ALLKERNEL)                        \
+        | (      (all) << 3 * TLBINV_ALL)) >> 3 * (op)) & 7)
 
 #define        TLBINV_USER_MAP(op)     \
        TLBINV_MAP(op, TLBINV_ONE, TLBINV_ALLUSER, TLBINV_ALLUSER,      \
diff -r 473ab2fe9830 -r c5f586255ff8 sys/uvm/pmap/pmap_tlb.h
--- a/sys/uvm/pmap/pmap_tlb.h   Wed Aug 19 06:10:06 2020 +0000
+++ b/sys/uvm/pmap/pmap_tlb.h   Wed Aug 19 06:11:49 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_tlb.h,v 1.14 2020/08/01 07:14:05 skrll Exp $      */
+/*     $NetBSD: pmap_tlb.h,v 1.15 2020/08/19 06:11:49 skrll Exp $      */
 
 /*
  * Copyright (c) 1992, 1993
@@ -104,11 +104,11 @@
            - offsetof(struct pmap, pm_pai[tlbinfo_index(ti)])))
 
 enum tlb_invalidate_op {
-       TLBINV_NOBODY=0,
-       TLBINV_ONE=1,
-       TLBINV_ALLUSER=2,
-       TLBINV_ALLKERNEL=3,
-       TLBINV_ALL=4
+       TLBINV_NOBODY = 0,
+       TLBINV_ONE = 1,
+       TLBINV_ALLUSER = 2,
+       TLBINV_ALLKERNEL = 3,
+       TLBINV_ALL = 4
 };
 
 struct pmap_tlb_info {



Home | Main Index | Thread Index | Old Index