lkml.org 
[lkml]   [1999]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 2.3.32: CONFIG_BIGMEM does not compile on x86
On Sat, 16 Oct 1999, Adam J. Richter wrote:

> If CONFIG_BIGMEM is selected in Linux 2.3.22, then
>arch/i386/kernel/setup.c will refer to the symbol MAX_PFN, which
>is not defined.

Somebody cleanedup the mem init stuff and added a typo. Here it is the
fix against 2.3.22:

--- 2.3.22-bigmem/arch/i386/kernel/setup.c.~1~ Sat Oct 16 03:34:51 1999
+++ 2.3.22-bigmem/arch/i386/kernel/setup.c Sun Oct 17 19:53:28 1999
@@ -590,8 +590,8 @@
#ifdef CONFIG_BIGMEM
#define MAXBIGMEM ((unsigned long)(~(VMALLOC_RESERVE-1)))
#define MAXBIGMEM_PFN (MAXBIGMEM >> PAGE_SHIFT)
- if (max_pfn > MAX_PFN)
- max_pfn = MAX_PFN;
+ if (max_pfn > MAXBIGMEM_PFN)
+ max_pfn = MAXBIGMEM_PFN;

/* When debugging, make half of "normal" memory be BIGMEM memory instead */
#ifdef BIGMEM_DEBUG

BTW, I have no idea what pfn means (p is page, n is number, f is _not_ fault).

Andrea


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:54    [from the cache]
©2003-2011 Jasper Spaans