Commit 82092776 authored by Richard Kuo's avatar Richard Kuo

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: default avatarRichard Kuo <rkuo@codeaurora.org>
parent 3981c472
...@@ -215,8 +215,7 @@ struct pt_regs { ...@@ -215,8 +215,7 @@ struct pt_regs {
#define pt_clr_singlestep(regs) ((regs)->hvmer.vmest &= ~(1<<HVM_VMEST_SS_SFT)) #define pt_clr_singlestep(regs) ((regs)->hvmer.vmest &= ~(1<<HVM_VMEST_SS_SFT))
#define pt_set_rte_sp(regs, sp) do {\ #define pt_set_rte_sp(regs, sp) do {\
pt_psp(regs) = (sp);\ pt_psp(regs) = (regs)->SP = (sp);\
(regs)->SP = (unsigned long) &((regs)->hvmer);\
} while (0) } while (0)
#define pt_set_kmode(regs) \ #define pt_set_kmode(regs) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment