diff options
| author | Bernard Xiong <[email protected]> | 2019-03-29 10:52:09 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-03-29 10:52:09 +0800 |
| commit | 15d9967a4e105888941706714d56db7d37db75c4 (patch) | |
| tree | 9ef172429c798822cb213d84bd3bb263a6579d24 /libcpu | |
| parent | eabb04ed3de48e2fd8bdef6067b34607cff34deb (diff) | |
| parent | fcb88f70343f9e2dd8e3ba3ab7cba56497ad1415 (diff) | |
Merge pull request #2520 from lymzzyh/k210-enchance
K210 enchance
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); |
