]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8033/1: fix big endian __pv_phys_pfn_offset size related issue
authorVictor Kamensky <victor.kamensky@linaro.org>
Tue, 22 Apr 2014 01:25:36 +0000 (02:25 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 22 Apr 2014 21:24:00 +0000 (22:24 +0100)
commitaf0a37454f9d96f8cb8e227d9e3a16a1e61e5756
treef0d5502336bd86079a77e9ca5f62c8048715075f
parentf0e21c4bee5cfa2c9e6fada720ede73b25e66d45
ARM: 8033/1: fix big endian __pv_phys_pfn_offset size related issue

Fix c3314564a1b28b84726d4c290f71db76af918df1 'ARM: Better
virt_to_page() handling' replaced __pv_phys_offset with
__pv_phys_pfn_offset. Also note that size of __pv_phys_offset
was quad but size of __pv_phys_pfn_offset is word. Instruction
that used to update __pv_phys_offset which address is in r6
had to update low word of __pv_phys_offset so it used #LOW_OFFSET
macro for store offset. Now when size of __pv_phys_pfn_offset is
word, no difference between little endian and big endian should
exist - i.e no offset should be used when __pv_phys_pfn_offset
is stored.

Note that for little endian image proposed change is noop,
since in little endian case #LOW_OFFSET is defined 0 anyway.

Reported-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/head.S