From a8acecdc08440f32144eb2b52a008f7e063aed74 Mon Sep 17 00:00:00 2001 From: kub Date: Tue, 14 Dec 2021 20:20:12 +0100 Subject: [PATCH] z80, DrZ80: another fix for EABI stack alignment --- cpu/DrZ80/drz80.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/DrZ80/drz80.S b/cpu/DrZ80/drz80.S index d7eaa0dc..e4e10479 100644 --- a/cpu/DrZ80/drz80.S +++ b/cpu/DrZ80/drz80.S @@ -1517,7 +1517,7 @@ DoInterrupt_end: ldr r0,[cpucontext, #z80irqcallback] tst r0,r0 streqb r0,[cpucontext,#z80irq] ;@ default handling - ldmeqfd sp!,{pc} + ldmeqfd sp!,{r2,pc} stmfd sp!,{r3,r12} mov lr,pc mov pc,r0 ;@ call callback function -- 2.39.5