Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/amd64 CR4_PAE is always set to 1 under amd64, ...
details: https://anonhg.NetBSD.org/src/rev/bdc4f0199d52
branches: trunk
changeset: 767377:bdc4f0199d52
user: jym <jym%NetBSD.org@localhost>
date: Sun Jul 17 15:16:58 2011 +0000
description:
CR4_PAE is always set to 1 under amd64, so indicate that PAE mode is
enabled. Can be useful for 32-bits test runs on amd64 hosts.
diffstat:
sys/arch/amd64/amd64/machdep.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r d29027b24641 -r bdc4f0199d52 sys/arch/amd64/amd64/machdep.c
--- a/sys/arch/amd64/amd64/machdep.c Sun Jul 17 12:47:38 2011 +0000
+++ b/sys/arch/amd64/amd64/machdep.c Sun Jul 17 15:16:58 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.161 2011/06/12 03:35:37 rmind Exp $ */
+/* $NetBSD: machdep.c,v 1.162 2011/07/17 15:16:58 jym Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008
@@ -107,7 +107,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.161 2011/06/12 03:35:37 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.162 2011/07/17 15:16:58 jym Exp $");
/* #define XENDEBUG_LOW */
@@ -524,6 +524,12 @@
CTLTYPE_QUAD, "tsc_freq", NULL,
NULL, 0, &tsc_freq, 0,
CTL_MACHDEP, CTL_CREATE, CTL_EOL);
+ sysctl_createv(clog, 0, NULL, NULL,
+ CTLFLAG_PERMANENT | CTLFLAG_IMMEDIATE,
+ CTLTYPE_INT, "pae",
+ SYSCTL_DESCR("Whether the kernel uses PAE"),
+ NULL, 1, NULL, 0,
+ CTL_MACHDEP, CTL_CREATE, CTL_EOL);
}
void
Home |
Main Index |
Thread Index |
Old Index