zyfeier commented on code in PR #21496:
URL: https://github.com/apache/nuttx/pull/21496#discussion_r4490160516


##########
arch/tricore/src/common/tricore_trapcall.c:
##########
@@ -444,19 +518,92 @@ void tricore_trapcall(volatile void *trap)
             }
         }
 
-      __jumpBackToLink();
+      tricore_trap_return();
     }
 
-  if (tclass == IfxCpu_Trap_Class_assertion)
+  if (tclass == TRICORE_TRAP_CLASS_ASSERT)
     {
       tricore_assertiontrap(tid, regs, NULL);
-      __jumpBackToLink();
+      tricore_trap_return();
     }
 
   up_irq_save();
   PANIC_WITH_REGS("Trap", regs);
 }
 
+/****************************************************************************
+ * Name: tricore_fcu_register_pool
+ *
+ * Description:
+ *   Register the context save areas that the free context list underflow
+ *   (FCU) trap uses to report the trap when no free CSA is left.  The pool
+ *   is linked only when the trap happens, so it may also be RAM that is in
+ *   use until then.
+ *
+ * Input Parameters:
+ *   base - 64-byte aligned start of the pool
+ *   num  - Number of context save areas, at least TRICORE_FCU_CSA_MINNUM
+ *
+ ****************************************************************************/
+
+void tricore_fcu_register_pool(void *base, size_t num)
+{
+  DEBUGASSERT(base != NULL);
+  DEBUGASSERT(((uintptr_t)base & (TC_CONTEXT_SIZE - 1)) == 0);
+  DEBUGASSERT(num >= TRICORE_FCU_CSA_MINNUM);

Review Comment:
   no need?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to