Ralf, On 3/19/07, Franck Bui-Huu <vagabon.xyz@xxxxxxxxx> wrote:
From: Franck Bui-Huu <fbuihuu@xxxxxxxxx> For platforms that use PHYS_OFFSET and do not use a mapped kernel, this patch automatically adds PHYS_OFFSET into PAGE_OFFSET. Therefore for these platforms there are no more needs to change PAGE_OFFSET.
This patch is actually useless. I didn't notice that spaces.h must be totaly rewritten by platforms when they need to customize one value. Why, I dunno ? Why not doing something like: -- >8 -- diff --git a/include/asm-mips/mach-generic/spaces.h b/include/asm-mips/mach-generic/spaces.h index 0ae9997..beec80e 100644 --- a/include/asm-mips/mach-generic/spaces.h +++ b/include/asm-mips/mach-generic/spaces.h @@ -16,13 +16,18 @@ #define CAC_BASE 0x80000000 #define IO_BASE 0xa0000000 #define UNCAC_BASE 0xa0000000 + +#ifndef MAP_BASE #define MAP_BASE 0xc0000000 +#endif /* * This handles the memory map. * We handle pages at KSEG0 for kernels with 32 bit address space. */ +#ifndef PAGE_OFFSET #define PAGE_OFFSET 0x80000000UL +#endif /* * Memory above this physical address will be considered highmem. @@ -38,11 +43,13 @@ /* * This handles the memory map. */ +#ifndef PAGE_OFFSET #ifdef CONFIG_DMA_NONCOHERENT #define PAGE_OFFSET 0x9800000000000000UL #else #define PAGE_OFFSET 0xa800000000000000UL #endif +#endif /* * Memory above this physical address will be considered highmem. -- >8 -- and doing in platform's spaces.h: [ redefine a couple of constants] #include <asm/mach-generic/spaces.h> AFAIK, {CAC,UNCAC,IO}_BASE are likely to be the same for all platforms, no ? Does that need some cleanup ? if so I'm your man ;) -- Franck