ARM: Thumb-2: Fix exception return sequence to restore stack correctly
authorJon Medhurst <tixy@yxit.co.uk>
Fri, 18 Mar 2011 17:32:44 +0000 (17:32 +0000)
committerTixy <tixy@medhuaa1.miniserver.com>
Wed, 13 Jul 2011 17:32:40 +0000 (17:32 +0000)
commit594810621d9605dd40b6ce42e2e188a7dd6ba27c
treeb44f46bf562bec026a2758ec6516fb22bfada28d
parent620917de59eeb934b9f8cf35cc2d95c1ac8ed0fc
ARM: Thumb-2: Fix exception return sequence to restore stack correctly

The implementation of svc_exit didn't take into account any stack hole
created by svc_entry; as happens with the undef handler when kprobes are
configured. The fix is to read the saved value of SP rather than trying
to calculate it.

Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
arch/arm/kernel/entry-header.S