Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f56a68d authored by Stephen Boyd's avatar Stephen Boyd Committed by Russell King
Browse files

ARM: 8438/1: Add unwinding to __clear_user_std()



Add unwinding annotations so that unwinding from this function
works properly.

Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent b97b272e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@
 */
#include <linux/linkage.h>
#include <asm/assembler.h>
#include <asm/unwind.h>

		.text

@@ -20,6 +21,8 @@
 */
ENTRY(__clear_user_std)
WEAK(arm_clear_user)
UNWIND(.fnstart)
UNWIND(.save {r1, lr})
		stmfd	sp!, {r1, lr}
		mov	r2, #0
		cmp	r1, #4
@@ -44,6 +47,7 @@ WEAK(arm_clear_user)
USER(		strnebt	r2, [r0])
		mov	r0, #0
		ldmfd	sp!, {r1, pc}
UNWIND(.fnend)
ENDPROC(arm_clear_user)
ENDPROC(__clear_user_std)