From d6855818296b769a4f6c2b9fd4a7bffb203d0ddb Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Mon, 10 Aug 2015 11:52:26 +1000 Subject: [PATCH] Syscall hander: Fix a3 save address (SDK doesn't use syscall exception so bug probably never hit?) --- core/exception_vectors.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/exception_vectors.S b/core/exception_vectors.S index 9085ca2..43dbd12 100644 --- a/core/exception_vectors.S +++ b/core/exception_vectors.S @@ -230,7 +230,7 @@ UserIntExit: UserSyscallHandler: addi sp, sp, -0x10 s32i a2, sp, 0x08 - s32i a2, sp, 0x0c + s32i a3, sp, 0x0c rsr.epc1 a2 addi a3, a2, 0x3 wsr.epc1 a3