firmware: rockchip: use sp_el1 from bl31 delivers
authorchenjh <chenjh@rock-chips.com>
Sat, 27 May 2017 03:30:29 +0000 (11:30 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 5 Jun 2017 06:28:44 +0000 (14:28 +0800)
we think 'if (fiq_pt_regs.pstate & 0x10)' doesn't make any
sense, use sp_el1 from bl31 delivers is ok.

Change-Id: I0792d76e39912b4ca5484b029761daac05cd719b
Signed-off-by: chenjh <chenjh@rock-chips.com>
drivers/firmware/rockchip_sip.c

index f813dc7048f25a060c592b41c26da3be18538f43..df4cd460ad2c265bc26b04474e0103cc1b0cd6c9 100644 (file)
@@ -144,13 +144,7 @@ static struct pt_regs sip_fiq_debugger_get_pt_regs(void *reg_base,
 
        /* copy pstate */
        memcpy(&fiq_pt_regs.pstate, reg_base + 0x110, 8);
-
-       /* EL1 mode */
-       if (fiq_pt_regs.pstate & 0x10)
-               memcpy(&fiq_pt_regs.sp, reg_base + 0xf8, 8);
-       /* EL0 mode */
-       else
-               fiq_pt_regs.sp = sp_el1;
+       fiq_pt_regs.sp = sp_el1;
 
        /* copy pc */
        memcpy(&fiq_pt_regs.pc, reg_base + 0x118, 8);