lkml.org 
[lkml]   [1999]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [bigmem-patch] 4GB with Linux on IA32
On Tue, 17 Aug 1999, Andrea Arcangeli wrote:

>#ifdef in the common code (all other archs will have to #define some noop
>as well then of course).

I was wrong, with the linux/bigmem.h trick all other arch should be just
fine ;).

I did a preliminary cleanup. mm/page_alloc.c still uses some #ifdef but
they are not trivally removable, for example:

+#ifdef CONFIG_BIGMEM
+#define BIGMEM_LISTS_OFFSET NR_MEM_LISTS
+static struct free_area_struct free_area[NR_MEM_LISTS*2];
+#else
static struct free_area_struct free_area[NR_MEM_LISTS];
+#endif

The cleanedup patch (bigmem-2.3.13-N) is attached.

andrea@laser:~/kernel-patches/2.3.13 > ls -l bigmem-2.3.13-[NM]
-rw-r--r-- 1 andrea andrea 32416 Aug 17 01:28 bigmem-2.3.13-M
-rw-r--r-- 1 andrea andrea 30779 Aug 17 16:01 bigmem-2.3.13-N

(2kbyte removed from the cleanup)

Thanks.

Andrea
[unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2005-03-22 13:53    [W:1.391 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site