Skip to content

Commit

Permalink
removed unused routines
Browse files Browse the repository at this point in the history
  • Loading branch information
davideschiavone committed Aug 9, 2024
1 parent 03e0510 commit a551fe8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
12 changes: 0 additions & 12 deletions sw/device/lib/crt/vectors.S
Original file line number Diff line number Diff line change
Expand Up @@ -133,18 +133,6 @@ __no_irq_handler:
j __no_irq_handler


sw_irq_handler:
csrr t0, mcause
slli t0, t0, 1 /* shift off the high bit */
srli t0, t0, 1
li t1, 2
beq t0, t1, handle_illegal_insn
li t1, 11
beq t0, t1, handle_ecall
li t1, 3
beq t0, t1, handle_ebreak
j handle_unknown

.globl handle_ecall
handle_ecall:
la a0, ecall_msg
Expand Down
12 changes: 0 additions & 12 deletions sw/device/lib/crt/vectors_freertos.S
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,6 @@ __no_irq_handler:
jal ra, puts
j __no_irq_handler

sw_irq_handler:
csrr t0, mcause
slli t0, t0, 1 /* shift off the high bit */
srli t0, t0, 1
li t1, 2
beq t0, t1, handle_illegal_insn
li t1, 11
beq t0, t1, handle_ecall
li t1, 3
beq t0, t1, handle_ebreak
j handle_unknown

handle_ecall:
la a0, ecall_msg
jal ra, puts
Expand Down

0 comments on commit a551fe8

Please sign in to comment.