From: Andrea Adami Date: Thu, 26 Sep 2013 22:23:02 +0000 (+0100) Subject: ARM: 7845/1: sharpsl_param.c: fix invalid memory access for pxa devices X-Git-Tag: v3.12-rc6~21^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=856337283a215b9f92189f22862e4415f4d6bd85;p=pandora-kernel.git ARM: 7845/1: sharpsl_param.c: fix invalid memory access for pxa devices This fixes a regression for kernels after v3.2 After commit 72662e01088394577be4a3f14da94cf87bea2591 ARM: head.S: only include __turn_mmu_on in the initial identity mapping Zaurus PXA devices call sharpsl_save_param() during fixup and hang on boot because memcpy refers to physical addresses no longer valid if the MMU is setup. Zaurus collie (SA1100) is unaffected (function is called in init_machine). The code was making assumptions and for PXA the virtual address should have been used before. Signed-off-by: Marko Katic Signed-off-by: Andrea Adami Signed-off-by: Russell King --- Reading git-diff-tree failed