arm64: fix access to preempt_count from assembly code
authorMarc Zyngier <Marc.Zyngier@arm.com>
Mon, 4 Nov 2013 20:14:58 +0000 (20:14 +0000)
committerMark Brown <broonie@linaro.org>
Thu, 15 May 2014 19:00:55 +0000 (20:00 +0100)
commitd5c5e6a15e4786dc21a08937821b6365466d6e34
treec83efc9cd695a9e3a63bd0cdbe11b04361d87215
parentb35f594dc7939d9be5fcae354738a419cc0c081e
arm64: fix access to preempt_count from assembly code

preempt_count is defined as an int. Oddly enough, we access it
as a 64bit value. Things become interesting when running a BE
kernel, and looking at the current CPU number, which is stored
as an int next to preempt_count. Like in a per-cpu interrupt
handler, for example...

Using a 32bit access fixes the issue for good.

Cc: Matthew Leach <matthew.leach@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit 717321fcb58ed95169bf344ae47ac6098ba5dfbe)
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm64/kernel/entry.S