Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/include/arm32 KNF and add a comment



details:   https://anonhg.NetBSD.org/src/rev/836a9c5c3457
branches:  trunk
changeset: 452131:836a9c5c3457
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Jun 19 09:53:39 2019 +0000

description:
KNF and add a comment

diffstat:

 sys/arch/arm/include/arm32/param.h |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (21 lines):

diff -r 7b395a28f311 -r 836a9c5c3457 sys/arch/arm/include/arm32/param.h
--- a/sys/arch/arm/include/arm32/param.h        Wed Jun 19 08:18:01 2019 +0000
+++ b/sys/arch/arm/include/arm32/param.h        Wed Jun 19 09:53:39 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.26 2019/02/04 13:06:39 skrll Exp $ */
+/*     $NetBSD: param.h,v 1.27 2019/06/19 09:53:39 skrll Exp $ */
 
 /*
  * Copyright (c) 1994,1995 Mark Brinicombe.
@@ -53,9 +53,8 @@
 #endif
 #endif
 #define        NBPG            (1 << PGSHIFT)  /* bytes/page */
-#define        PGOFSET         (NBPG-1)        /* byte offset into page */
-#define        NPTEPG          (NBPG/(sizeof (pt_entry_t)))
-
+#define        PGOFSET         (NBPG - 1)      /* byte offset into page */
+#define        NPTEPG          (NBPG / sizeof(pt_entry_t))     /* PTEs per Page */
 
 #define SSIZE          1               /* initial stack size/NBPG */
 #define SINCR          1               /* increment of stack/NBPG */



Home | Main Index | Thread Index | Old Index