Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/include Remove useless values, and explain wh...



details:   https://anonhg.NetBSD.org/src/rev/c4ff04138995
branches:  trunk
changeset: 348850:c4ff04138995
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri Nov 11 12:06:31 2016 +0000

description:
Remove useless values, and explain where some others come from

diffstat:

 sys/arch/amd64/include/pmap.h |  17 +++--------------
 1 files changed, 3 insertions(+), 14 deletions(-)

diffs (40 lines):

diff -r ae98d4cda53a -r c4ff04138995 sys/arch/amd64/include/pmap.h
--- a/sys/arch/amd64/include/pmap.h     Fri Nov 11 12:01:14 2016 +0000
+++ b/sys/arch/amd64/include/pmap.h     Fri Nov 11 12:06:31 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.h,v 1.38 2016/07/22 14:08:33 maxv Exp $   */
+/*     $NetBSD: pmap.h,v 1.39 2016/11/11 12:06:31 maxv Exp $   */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -128,17 +128,6 @@
  */
 
 /*
- * The first generation of Hammer processors can use 48 bits of
- * virtual memory, and 40 bits of physical memory. This will be
- * more for later generations. These defines can be changed to
- * variable names containing the # of bits, extracted from an
- * extended cpuid instruction (variables are harder to use during
- * bootstrap, though)
- */
-#define VIRT_BITS      48
-#define PHYS_BITS      40
-
-/*
  * Mask to get rid of the sign-extended part of addresses.
  */
 #define VA_SIGN_MASK           0xffff000000000000
@@ -150,10 +139,10 @@
 
 #define L4_SLOT_PTE            255
 #ifndef XEN
-#define L4_SLOT_KERN           256
+#define L4_SLOT_KERN           256 /* pl4_i(VM_MIN_KERNEL_ADDRESS) */
 #else
 /* Xen use slots 256-272, let's move farther */
-#define L4_SLOT_KERN           320
+#define L4_SLOT_KERN           320 /* pl4_i(VM_MIN_KERNEL_ADDRESS) */
 #endif
 #define L4_SLOT_KERNBASE       511 /* pl4_i(KERNBASE) */
 



Home | Main Index | Thread Index | Old Index