From 47e47e7670d25a45684ec3cc409f230d3e0e87cb Mon Sep 17 00:00:00 2001 From: Angel Cascarino Date: Wed, 19 Jun 2024 15:32:21 +0100 Subject: [PATCH] Fix kexcept function --- portable/ThirdParty/xClang/XCOREAI/portasm.S | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/portable/ThirdParty/xClang/XCOREAI/portasm.S b/portable/ThirdParty/xClang/XCOREAI/portasm.S index 7445672a0..46c7faf35 100644 --- a/portable/ThirdParty/xClang/XCOREAI/portasm.S +++ b/portable/ThirdParty/xClang/XCOREAI/portasm.S @@ -14,11 +14,7 @@ rest of the ISR callback functions. */ .issue_mode dual .cc_top kexcept.function, kexcept kexcept: - ldc r11, 0x0008 - shl r11, r11, 16 - ldc r9, 0x0080 - or r11, r11, r9 - bau r11 //_TrapHandler is at 0x00080080. TODO: Is it always? Why can't I access the symbol _TrapHandler? + bu _DoException _yield: {set sp, r4 /* Restore the task's SP to save the rest of its context. */