ARM: virt: avoid clobbering lr when forcing svc mode
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 3 Dec 2012 15:39:43 +0000 (15:39 +0000)
committerWill Deacon <will.deacon@arm.com>
Thu, 10 Jan 2013 21:09:31 +0000 (21:09 +0000)
commit8e9c24a2b2e00368262b974d6ea1ac5310570bbe
treef7ab7ace096b95a12c43f4bfc40c404e8b78a433
parent9931faca02c604c22335f5a935a501bb2ace6e20
ARM: virt: avoid clobbering lr when forcing svc mode

The safe_svcmode_maskall macro is used to ensure that we are running in
svc mode, causing an exception return from hvc mode if required.

This patch removes the unneeded lr clobber from the macro and operates
entirely on the temporary parameter register instead.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
[will: updated comment]
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/include/asm/assembler.h