SoC common : arch/riscv: porting debug tools for WCN. [1/3]
PD#SWPL-156997
Problem:
porting debug tools for WCN.
Solution:
porting debug tools for WCN.
Verify:
N/A
Change-Id: Ic9c68cd2dc49fb93adf8131352ea895d69ec2bb0
Signed-off-by: shijie.xiong <shijie.xiong@amlogic.com>
diff --git a/common.h b/common.h
index a78be3b..9b7c818 100644
--- a/common.h
+++ b/common.h
@@ -119,9 +119,15 @@
* stored on the stack during an exception
*/
struct pt_regs {
+#ifdef CONFIG_RISCV_WCN
+ uint32_t mepc;
+ uint32_t ra; //x1
+ uint32_t regs[27]; /* x5-x31 */
+#else
uint32_t regs[32]; /* include zero reg */
uint32_t mstatus; /* machine status register */
uint32_t mepc; /* machine exception program counter */
+#endif
};
#define UNUSED_PARAM(X) ((void)X)