From a551fe89437baa63485d0424b4ad2305089b5814 Mon Sep 17 00:00:00 2001 From: davide schiavone Date: Fri, 9 Aug 2024 12:39:44 +0200 Subject: [PATCH] removed unused routines --- sw/device/lib/crt/vectors.S | 12 ------------ sw/device/lib/crt/vectors_freertos.S | 12 ------------ 2 files changed, 24 deletions(-) diff --git a/sw/device/lib/crt/vectors.S b/sw/device/lib/crt/vectors.S index f4497af44..81c14957f 100644 --- a/sw/device/lib/crt/vectors.S +++ b/sw/device/lib/crt/vectors.S @@ -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 diff --git a/sw/device/lib/crt/vectors_freertos.S b/sw/device/lib/crt/vectors_freertos.S index 3596dc186..17654b935 100644 --- a/sw/device/lib/crt/vectors_freertos.S +++ b/sw/device/lib/crt/vectors_freertos.S @@ -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