From: Richard Kuo Date: Thu, 25 Oct 2012 18:50:27 +0000 (-0500) Subject: Hexagon: fix psp/sp macro X-Git-Tag: MMI-PSA29.97-13-9~14449^2~14 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=820927768711b3c5c1f4aa7408433ff6ad37fd56;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Hexagon: fix psp/sp macro Based on feedback from Al Viro; previous-stack-pointer and user reg for same should always be kept consistent. Signed-off-by: Richard Kuo --- diff --git a/arch/hexagon/include/uapi/asm/registers.h b/arch/hexagon/include/uapi/asm/registers.h index fcdb5f96a984..487d6ceca5e7 100644 --- a/arch/hexagon/include/uapi/asm/registers.h +++ b/arch/hexagon/include/uapi/asm/registers.h @@ -215,8 +215,7 @@ struct pt_regs { #define pt_clr_singlestep(regs) ((regs)->hvmer.vmest &= ~(1<SP = (unsigned long) &((regs)->hvmer);\ + pt_psp(regs) = (regs)->SP = (sp);\ } while (0) #define pt_set_kmode(regs) \