Browse Source

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>
Richard Kuo 12 năm trước cách đây
mục cha
commit
8209277687
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      arch/hexagon/include/uapi/asm/registers.h

+ 1 - 2
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) \