[rtems-central commit] spec: Support powerpc in test case

Sebastian Huber sebh at rtems.org
Thu Oct 12 14:22:07 UTC 2023


Module:    rtems-central
Branch:    master
Commit:    ce1c372a428cd8da71ae4c5f145798cb97a9bc48
Changeset: http://git.rtems.org/rtems-central/commit/?id=ce1c372a428cd8da71ae4c5f145798cb97a9bc48

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Oct 12 16:40:18 2023 +0200

spec: Support powerpc in test case

---

 spec/score/isr/val/isr.yml | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/spec/score/isr/val/isr.yml b/spec/score/isr/val/isr.yml
index 41046a26..6ef3f2d5 100644
--- a/spec/score/isr/val/isr.yml
+++ b/spec/score/isr/val/isr.yml
@@ -89,6 +89,23 @@ test-support: |
   }
   #endif
 
+  #if defined(__PPC__) || defined(__powerpc64__)
+  void __real_bsp_interrupt_dispatch( void );
+
+  void __wrap_bsp_interrupt_dispatch( void );
+
+  void __wrap_bsp_interrupt_dispatch( void )
+  {
+    register uintptr_t sp __asm__( "14" );
+
+    if ( interrupted_stack_at_multitasking_start == 0 ) {
+      interrupted_stack_at_multitasking_start = sp;
+    }
+
+    __real_bsp_interrupt_dispatch();
+  }
+  #endif
+
   #if defined(__riscv)
   void __real__RISCV_Interrupt_dispatch(
     uintptr_t        mcause,



More information about the vc mailing list