From 259c9b643fdc5f81b0e13f43812dd400523279bc Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Mon, 14 Sep 2015 18:17:45 +1000 Subject: [PATCH] Exception vectors: Remove no-op syscallhandler --- core/exception_vectors.S | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/core/exception_vectors.S b/core/exception_vectors.S index 5d5b74e..9df4f0d 100644 --- a/core/exception_vectors.S +++ b/core/exception_vectors.S @@ -57,7 +57,6 @@ KernelExceptionVector: UserExceptionVector: wsr.excsave1 a0 rsr.exccause a0 - beqi a0, CAUSE_SYSCALL, UserSyscallHandler beqi a0, CAUSE_LOADSTORE, UserExceptionLoadStoreHandler j UserExceptionHandler @@ -224,22 +223,6 @@ UserIntDone: UserIntExit: call0 sdk__xt_int_exit /* calls rfi */ -/* As far as I can tell, the syscall handler is basically a no-op */ -UserSyscallHandler: - addi sp, sp, -0x10 - s32i a2, sp, 0x08 - s32i a3, sp, 0x0c - rsr.epc1 a2 - addi a3, a2, 0x3 - wsr.epc1 a3 - l32i a2, sp, 0x8 - l32i a3, sp, 0xc - addi sp, sp, 0x10 - movi a0, 0x7f - movnez a2, a0, a2 - rsr.excsave1 a0 - rfe - .text .section .vecbase.text .literal_position