Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86 Move PATENTRY into pmap.h, will be used outside.



details:   https://anonhg.NetBSD.org/src/rev/93bc5b3856c1
branches:  trunk
changeset: 997113:93bc5b3856c1
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat Feb 23 10:59:12 2019 +0000

description:
Move PATENTRY into pmap.h, will be used outside.

diffstat:

 sys/arch/x86/include/pmap.h |  10 +++++++++-
 sys/arch/x86/x86/pmap.c     |  12 ++----------
 2 files changed, 11 insertions(+), 11 deletions(-)

diffs (57 lines):

diff -r bf36729313a5 -r 93bc5b3856c1 sys/arch/x86/include/pmap.h
--- a/sys/arch/x86/include/pmap.h       Sat Feb 23 10:43:36 2019 +0000
+++ b/sys/arch/x86/include/pmap.h       Sat Feb 23 10:59:12 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.h,v 1.97 2019/02/13 08:38:25 maxv Exp $   */
+/*     $NetBSD: pmap.h,v 1.98 2019/02/23 10:59:12 maxv Exp $   */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -114,6 +114,14 @@
 #include <x86/pmap_pv.h>
 #include <uvm/pmap/pmap_pvt.h>
 
+#define        PATENTRY(n, type)       (type << ((n) * 8))
+#define        PAT_UC          0x0ULL
+#define        PAT_WC          0x1ULL
+#define        PAT_WT          0x4ULL
+#define        PAT_WP          0x5ULL
+#define        PAT_WB          0x6ULL
+#define        PAT_UCMINUS     0x7ULL
+
 #define BTSEG_NONE     0
 #define BTSEG_TEXT     1
 #define BTSEG_RODATA   2
diff -r bf36729313a5 -r 93bc5b3856c1 sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c   Sat Feb 23 10:43:36 2019 +0000
+++ b/sys/arch/x86/x86/pmap.c   Sat Feb 23 10:59:12 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.326 2019/02/23 10:43:37 maxv Exp $  */
+/*     $NetBSD: pmap.c,v 1.327 2019/02/23 10:59:12 maxv Exp $  */
 
 /*
  * Copyright (c) 2008, 2010, 2016, 2017 The NetBSD Foundation, Inc.
@@ -130,7 +130,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.326 2019/02/23 10:43:37 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.327 2019/02/23 10:59:12 maxv Exp $");
 
 #include "opt_user_ldt.h"
 #include "opt_lockdebug.h"
@@ -287,14 +287,6 @@
 /*
  * PAT
  */
-#define        PATENTRY(n, type)       (type << ((n) * 8))
-#define        PAT_UC          0x0ULL
-#define        PAT_WC          0x1ULL
-#define        PAT_WT          0x4ULL
-#define        PAT_WP          0x5ULL
-#define        PAT_WB          0x6ULL
-#define        PAT_UCMINUS     0x7ULL
-
 static bool cpu_pat_enabled __read_mostly = false;
 
 /*



Home | Main Index | Thread Index | Old Index