diff options
author | Richard Kuo <rkuo@codeaurora.org> | 2012-10-25 20:50:27 +0200 |
---|---|---|
committer | Richard Kuo <rkuo@codeaurora.org> | 2013-05-01 02:40:26 +0200 |
commit | 820927768711b3c5c1f4aa7408433ff6ad37fd56 (patch) | |
tree | 56698b3a455ad870a045cf2ea114cfa23a9029b5 /arch | |
parent | Hexagon: fix up int enable/disable at ret_from_fork (diff) | |
download | linux-820927768711b3c5c1f4aa7408433ff6ad37fd56.tar.xz linux-820927768711b3c5c1f4aa7408433ff6ad37fd56.zip |
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 <rkuo@codeaurora.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/hexagon/include/uapi/asm/registers.h | 3 |
1 files changed, 1 insertions, 2 deletions
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<<HVM_VMEST_SS_SFT)) #define pt_set_rte_sp(regs, sp) do {\ - pt_psp(regs) = (sp);\ - (regs)->SP = (unsigned long) &((regs)->hvmer);\ + pt_psp(regs) = (regs)->SP = (sp);\ } while (0) #define pt_set_kmode(regs) \ |