Re: [bigmem-patch] 4GB with Linux on IA32

Andrea Arcangeli
1999-08-17T14:04:17Z

[-- Attachment #1: Type: TEXT/PLAIN, Size: 856 bytes --]

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

[-- Attachment #2: bigmem without #ifdef CONFIG_BIGMEM all over the place --]
[-- Type: APPLICATION/octet-stream, Size: 9259 bytes --]