From ad7b8d0ced81e721594345c6bede6225848703a5 Mon Sep 17 00:00:00 2001 From: acoul Date: Sat, 24 Jul 2010 00:18:58 +0000 Subject: ixp4xx: add kernel 2.6.34 preliminary support git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22373 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../603-arm-kluin-array-indexing.patch | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 target/linux/ixp4xx/patches-2.6.34/603-arm-kluin-array-indexing.patch (limited to 'target/linux/ixp4xx/patches-2.6.34/603-arm-kluin-array-indexing.patch') diff --git a/target/linux/ixp4xx/patches-2.6.34/603-arm-kluin-array-indexing.patch b/target/linux/ixp4xx/patches-2.6.34/603-arm-kluin-array-indexing.patch new file mode 100644 index 000000000..aca693a41 --- /dev/null +++ b/target/linux/ixp4xx/patches-2.6.34/603-arm-kluin-array-indexing.patch @@ -0,0 +1,33 @@ +--- a/arch/arm/kernel/setup.c ++++ b/arch/arm/kernel/setup.c +@@ -322,12 +322,13 @@ static void __init setup_processor(void) + void cpu_init(void) + { + unsigned int cpu = smp_processor_id(); +- struct stack *stk = &stacks[cpu]; ++ struct stack *stk; + + if (cpu >= NR_CPUS) { + printk(KERN_CRIT "CPU%u: bad primary CPU number\n", cpu); + BUG(); + } ++ stk = &stacks[cpu]; + + /* + * Define the placement constraint for the inline asm directive below. +@@ -386,13 +387,14 @@ static struct machine_desc * __init setu + + static int __init arm_add_memory(unsigned long start, unsigned long size) + { +- struct membank *bank = &meminfo.bank[meminfo.nr_banks]; ++ struct membank *bank; + + if (meminfo.nr_banks >= NR_BANKS) { + printk(KERN_CRIT "NR_BANKS too low, " + "ignoring memory at %#lx\n", start); + return -EINVAL; + } ++ bank = &meminfo.bank[meminfo.nr_banks]; + + /* + * Ensure that start/size are aligned to a page boundary. -- cgit v1.2.3