diff options
| author | ZYH <[email protected]> | 2019-03-28 16:49:43 +0800 |
|---|---|---|
| committer | ZYH <[email protected]> | 2019-03-28 17:05:52 +0800 |
| commit | fcb88f70343f9e2dd8e3ba3ab7cba56497ad1415 (patch) | |
| tree | 0ba6057afd2e913b25e7ccc79ccb5957365e82da /libcpu | |
| parent | 12ec9db1985c315ce0681029ddcb1d32f1272fb0 (diff) | |
[libcpu][k210]fix stack frame print
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/risc-v/k210/interrupt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/risc-v/k210/interrupt.c b/libcpu/risc-v/k210/interrupt.c index 45b437c099..b582599daf 100644 --- a/libcpu/risc-v/k210/interrupt.c +++ b/libcpu/risc-v/k210/interrupt.c @@ -270,7 +270,7 @@ struct exception_stack_frame void print_stack_frame(uintptr_t * sp) { - struct exception_stack_frame * esf = (struct exception_stack_frame *)sp; + struct exception_stack_frame * esf = (struct exception_stack_frame *)(sp+1); rt_kprintf("\n=================================================================\n"); rt_kprintf("x1 (ra : Return address ) ==> 0x%08x%08x\n", esf->x1 >> 32 , esf->x1 & UINT32_MAX); |
