]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
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)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 5 Nov 2013 09:33:57 +0000 (09:33 +0000)
commit717321fcb58ed95169bf344ae47ac6098ba5dfbe
tree288bb7a9d4e71c7161139cfad3181afc3d9d90b7
parent7ade67b5984d0a0434462fda733ab5138c63aae1
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>
arch/arm64/kernel/entry.S