Skip to content

Commit

Permalink
Debug Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Jul 28, 2023
1 parent 121b08f commit bf3475d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/risc-v/src/common/riscv_exception_common.S
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@
.align 8

exception_common:
/* Begin Debug */
/* Load UART Base Address to Register t0 */
li t0, 0x10000000
/* Load `#` to Register t1 */
li t1, 0x23
/* Store byte from Register t1 to UART Base Address, Offset 0 */
sb t1, 0(t0)
/* End Debug */

#ifdef CONFIG_ARCH_KERNEL_STACK
/* Take the kernel stack into use */
Expand Down

0 comments on commit bf3475d

Please sign in to comment.