Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 TOPLIMIT for i386 PAE is 64GB.



details:   https://anonhg.NetBSD.org/src/rev/2e8f5d812215
branches:  trunk
changeset: 750660:2e8f5d812215
user:      cegger <cegger%NetBSD.org@localhost>
date:      Sat Jan 09 22:54:00 2010 +0000

description:
TOPLIMIT for i386 PAE is 64GB.

diffstat:

 sys/arch/x86/x86/x86_machdep.c |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 40fccbb298cb -r 2e8f5d812215 sys/arch/x86/x86/x86_machdep.c
--- a/sys/arch/x86/x86/x86_machdep.c    Sat Jan 09 20:56:17 2010 +0000
+++ b/sys/arch/x86/x86/x86_machdep.c    Sat Jan 09 22:54:00 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: x86_machdep.c,v 1.37 2009/11/22 21:41:03 bouyer Exp $  */
+/*     $NetBSD: x86_machdep.c,v 1.38 2010/01/09 22:54:00 cegger Exp $  */
 
 /*-
  * Copyright (c) 2002, 2006, 2007 YAMAMOTO Takashi,
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_machdep.c,v 1.37 2009/11/22 21:41:03 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_machdep.c,v 1.38 2010/01/09 22:54:00 cegger Exp $");
 
 #include "opt_modular.h"
 
@@ -367,9 +367,13 @@
        int i;
 
 #ifdef i386
-#define TOPLIMIT       0x100000000ULL
+#ifdef PAE
+#define TOPLIMIT       0x1000000000ULL /* 64GB */
 #else
-#define TOPLIMIT       0x100000000000ULL
+#define TOPLIMIT       0x100000000ULL  /* 4GB */
+#endif
+#else
+#define TOPLIMIT       0x100000000000ULL /* 16TB */
 #endif
 
        if (seg_end > TOPLIMIT) {



Home | Main Index | Thread Index | Old Index