From c49f135f72f98633653300bab5b0ac993b03c6be Mon Sep 17 00:00:00 2001 From: Imre Kaloz Date: Tue, 23 Jun 2009 21:04:37 +0000 Subject: use broken-out patches for the coldfire to make it easier to follow differences against the bsp SVN-Revision: 16547 --- .../coldfire/patches/081-mcfv4e_vmalloc_fix.patch | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 target/linux/coldfire/patches/081-mcfv4e_vmalloc_fix.patch (limited to 'target/linux/coldfire/patches/081-mcfv4e_vmalloc_fix.patch') diff --git a/target/linux/coldfire/patches/081-mcfv4e_vmalloc_fix.patch b/target/linux/coldfire/patches/081-mcfv4e_vmalloc_fix.patch new file mode 100644 index 0000000000..2bb2db60f0 --- /dev/null +++ b/target/linux/coldfire/patches/081-mcfv4e_vmalloc_fix.patch @@ -0,0 +1,60 @@ +From db94c8c3ec831b5fab828487ba05041bc048fccf Mon Sep 17 00:00:00 2001 +From: Kurt Mahan +Date: Tue, 15 Jul 2008 17:48:11 -0600 +Subject: [PATCH] Move VMALLOC region to a valid area. + +LTIBName: mcfv4e-vmalloc-fix +Signed-off-by: Kurt Mahan +--- + arch/m68k/mm/cf-mmu.c | 7 +------ + include/asm-m68k/pgtable.h | 6 +++++- + 2 files changed, 6 insertions(+), 7 deletions(-) + +--- a/arch/m68k/mm/cf-mmu.c ++++ b/arch/m68k/mm/cf-mmu.c +@@ -35,7 +35,7 @@ + #include + #include + +-#define KMAPAREA(x) ((x >= KMAP_START) && ( x < KMAP_END)) ++#define KMAPAREA(x) ((x >= VMALLOC_START) && ( x < KMAP_END)) + + #undef DEBUG + +@@ -62,11 +62,6 @@ void free_initmem(void) + unsigned long start = (unsigned long)&__init_begin; + unsigned long end = (unsigned long)&__init_end; + +-/* +- * JKM -- revisit -- the latest round of vmlinux.lds changes has caused +- * a little grief with how init areas are handled. With the new toolchain +- * release I'll fix this. +- */ + printk(KERN_INFO "free_initmem: __init_begin = 0x%lx __init_end = 0x%lx\n", start, end); + + addr = (unsigned long)&__init_begin; +--- a/include/asm-m68k/pgtable.h ++++ b/include/asm-m68k/pgtable.h +@@ -73,7 +73,9 @@ + #define KMAP_START 0x0DC00000 + #define KMAP_END 0x0E000000 + #elif defined(CONFIG_COLDFIRE) +-#define KMAP_START 0xd0000000 ++#define VMALLOC_START 0xc0000000 ++#define VMALLOC_END 0xcfffffff ++#define KMAP_START (VMALLOC_END + 1) + #define KMAP_END 0xe0000000 + #else + #define KMAP_START 0xd0000000 +@@ -88,9 +90,11 @@ + * The vmalloc() routines leaves a hole of 4kB between each vmalloced + * area for the same reason. ;) + */ ++#if !defined(CONFIG_COLDFIRE) + #define VMALLOC_OFFSET (8*1024*1024) + #define VMALLOC_START (((unsigned long) high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1)) + #define VMALLOC_END KMAP_START ++#endif + #else + extern unsigned long vmalloc_end; + #define VMALLOC_START 0x0f800000 -- cgit v1.2.3