From 6ab6463aeb5fbc75fa3227befb508fc33b34dbf1 Mon Sep 17 00:00:00 2001 From: Larry Bassel Date: Fri, 30 May 2014 20:34:14 +0100 Subject: [PATCH] arm64: adjust el0_sync so that a function can be called To implement the context tracker properly on arm64, a function call needs to be made after debugging and interrupts are turned on, but before the lr is changed to point to ret_to_user(). If the function call is made after the lr is changed the function will not return to the correct place. For similar reasons, defer the setting of x0 so that it doesn't need to be saved around the function call (save far_el1 in x26 temporarily instead). Acked-by: Will Deacon Reviewed-by: Kevin Hilman Tested-by: Kevin Hilman Signed-off-by: Larry Bassel Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- Reading git-format-patch failed