Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Remove the constants of the DMAP, they are unused, ...



details:   https://anonhg.NetBSD.org/src/rev/d26e10dc23b2
branches:  trunk
changeset: 835567:d26e10dc23b2
user:      maxv <maxv%NetBSD.org@localhost>
date:      Wed Aug 29 06:28:50 2018 +0000

description:
Remove the constants of the DMAP, they are unused, and move NL4_SLOT_DIRECT
into amd64/.

diffstat:

 sys/arch/amd64/include/pmap.h |  6 ++++--
 sys/arch/x86/include/pmap.h   |  9 +--------
 2 files changed, 5 insertions(+), 10 deletions(-)

diffs (50 lines):

diff -r 17355f21fa5e -r d26e10dc23b2 sys/arch/amd64/include/pmap.h
--- a/sys/arch/amd64/include/pmap.h     Wed Aug 29 06:17:26 2018 +0000
+++ b/sys/arch/amd64/include/pmap.h     Wed Aug 29 06:28:50 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.h,v 1.55 2018/08/20 15:04:51 maxv Exp $   */
+/*     $NetBSD: pmap.h,v 1.56 2018/08/29 06:28:50 maxv Exp $   */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -97,6 +97,8 @@
 #define NL4_SLOT_KASAN         32
 #endif
 
+#define NL4_SLOT_DIRECT                32
+
 #ifndef XEN
 #define L4_SLOT_PTE            slotspace.area[SLAREA_PTE].sslot
 #else
@@ -167,7 +169,7 @@
 #define PG_PVLIST      PG_AVAIL2       /* mapping has entry on pvlist */
 /* PG_AVAIL3 not used */
 
-#define        PG_X            0               /* XXX dummy */
+#define        PG_X            0               /* dummy */
 
 void svs_pmap_sync(struct pmap *, int);
 void svs_lwp_switch(struct lwp *, struct lwp *);
diff -r 17355f21fa5e -r d26e10dc23b2 sys/arch/x86/include/pmap.h
--- a/sys/arch/x86/include/pmap.h       Wed Aug 29 06:17:26 2018 +0000
+++ b/sys/arch/x86/include/pmap.h       Wed Aug 29 06:28:50 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.h,v 1.86 2018/08/29 06:17:26 maxv Exp $   */
+/*     $NetBSD: pmap.h,v 1.87 2018/08/29 06:28:50 maxv Exp $   */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -569,13 +569,6 @@
 extern vaddr_t pmap_direct_base;
 extern vaddr_t pmap_direct_end;
 
-#define L4_SLOT_DIRECT         456
-#define PDIR_SLOT_DIRECT       L4_SLOT_DIRECT
-
-#define NL4_SLOT_DIRECT                32
-
-#define PMAP_DIRECT_DEFAULT_BASE (VA_SIGN_NEG((L4_SLOT_DIRECT * NBPD_L4)))
-
 #define PMAP_DIRECT_BASE       pmap_direct_base
 #define PMAP_DIRECT_END                pmap_direct_end
 



Home | Main Index | Thread Index | Old Index