From 74d04562df5b665e31a796f38d788ef3e3c7f51d Mon Sep 17 00:00:00 2001 From: Marko Gucanin Date: Wed, 6 Jul 2016 15:45:15 +0200 Subject: [PATCH] Revert "removed exception handler for SYSCALL, causing an infinite loop after calling vAHI_SwReset()" This reverts commit c4def60cdd02760bed023bf516ddbbf89e2bd916. --- platform/jn516x/dev/exceptions.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/jn516x/dev/exceptions.c b/platform/jn516x/dev/exceptions.c index a04654077..10a3bf11b 100644 --- a/platform/jn516x/dev/exceptions.c +++ b/platform/jn516x/dev/exceptions.c @@ -182,6 +182,7 @@ vEXC_Register(void) BUS_ERROR = (uint32)exception_handler; UNALIGNED_ACCESS = (uint32)exception_handler; ILLEGAL_INSTRUCTION = (uint32)exception_handler; + SYSCALL = (uint32)exception_handler; TRAP = (uint32)exception_handler; GENERIC = (uint32)exception_handler; STACK_OVERFLOW = (uint32)exception_handler; @@ -210,6 +211,11 @@ vException_IllegalInstruction(uint32 *pu32Stack, eExceptionType eType) exception_handler(pu32Stack, eType); } PUBLIC void +vException_SysCall(uint32 *pu32Stack, eExceptionType eType) +{ + exception_handler(pu32Stack, eType); +} +PUBLIC void vException_Trap(uint32 *pu32Stack, eExceptionType eType) { exception_handler(pu32Stack, eType);