lkml.org 
[lkml]   [2002]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patches in this message
/
From
SubjectRe: [PATCH] 2.5.5-dj2, modify arch/i386/Config.help for highpte options.
Date
On Thursday 28 February 2002 02:01 pm, Dave Jones wrote:
> On Thu, Feb 28, 2002 at 12:12:51PM -0700, Steven Cole wrote:
> > Here is a snippet from arch/i386/config.in both 2.5.5-dj2 and
> > 2.5.6-pre1: choice 'High Memory Support' \
> > "off CONFIG_NOHIGHMEM \
> > 4GB CONFIG_HIGHMEM4G \
> > 4GB-highpte CONFIG_HIGHMEM4G_HIGHPTE \
> > 64GB CONFIG_HIGHMEM64G \
> > 64GB-highpte CONFIG_HIGHMEM64G_HIGHPTE" off
>
> Would this not be better done using a "use highpte" bool in
> the !CONFIG_NOHIGHMEM case ?

Maybe. Here is a patch to arch/i386/config.in to try it that way.

Ingo, is this OK?

After the first patch, is another small patch to arch/i386/Config.help which
provides some explanation of CONFIG_HIGHPTE, which I hope is not
too inaccurate. This supercedes the original change to arch/i386/Config.help.

Steven

--- linux-2.5.5-dj2/arch/i386/config.in.orig Thu Feb 28 14:33:48 2002
+++ linux-2.5.5-dj2/arch/i386/config.in Thu Feb 28 15:20:18 2002
@@ -161,25 +161,20 @@
choice 'High Memory Support' \
"off CONFIG_NOHIGHMEM \
4GB CONFIG_HIGHMEM4G \
- 4GB-highpte CONFIG_HIGHMEM4G_HIGHPTE \
- 64GB CONFIG_HIGHMEM64G \
- 64GB-highpte CONFIG_HIGHMEM64G_HIGHPTE" off
-if [ "$CONFIG_HIGHMEM4G" = "y" ]; then
- define_bool CONFIG_HIGHMEM y
+ 64GB CONFIG_HIGHMEM64G" off
+
+if [ "$CONFIG_HIGHMEM4G" = "y" -o "$CONFIG_HIGHMEM64G" = "y" ]; then
+ bool 'Use high memory pte support' CONFIG_HIGHPTE
fi
-if [ "$CONFIG_HIGHMEM4G_HIGHPTE" = "y" ]; then
+
+if [ "$CONFIG_HIGHMEM4G" = "y" ]; then
define_bool CONFIG_HIGHMEM y
- define_bool CONFIG_HIGHPTE y
fi
+
if [ "$CONFIG_HIGHMEM64G" = "y" ]; then
define_bool CONFIG_HIGHMEM y
define_bool CONFIG_X86_PAE y
fi
-if [ "$CONFIG_HIGHMEM64G_HIGHPTE" = "y" ]; then
- define_bool CONFIG_HIGHMEM y
- define_bool CONFIG_HIGHPTE y
- define_bool CONFIG_X86_PAE y
-fi

bool 'Math emulation' CONFIG_MATH_EMULATION
bool 'MTRR (Memory Type Range Register) support' CONFIG_MTRR
--- linux-2.5.5-dj2/arch/i386/Config.help.orig Thu Feb 28 10:58:01 2002
+++ linux-2.5.5-dj2/arch/i386/Config.help Thu Feb 28 15:07:42 2002
@@ -128,6 +128,12 @@

If unsure, say "off".

+CONFIG_HIGHPTE
+ The VM uses one page table entry for each page of physical memory.
+ For systems with a lot of RAM, this can be wasteful of precious
+ low memory. Setting this option will put user-space page table
+ entries in high memory.
+
CONFIG_HIGHMEM4G
Select this if you have a 32-bit processor and between 1 and 4
gigabytes of physical RAM.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:21    [W:0.036 / U:0.544 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site