Get first configdev before restoring SP

Previously it was read after restoring the stack pointer, if an interrupt occured the data would have been overwritten
This commit is contained in:
Matt Harlum 2025-06-02 08:20:00 +00:00
parent 477f1b1157
commit 27c2878d0b

View File

@ -330,11 +330,10 @@ InitRoutine
move.l a7,a0 ;A0: CurrentBinding structure
move.l #CurrentBinding_SIZEOF,d0 ;D0: Size of CurrentBinding
jsr _LVOGetCurrentBinding(a6)
move.l a7,a0 ;Restore CurrentBinding pointer
move.l cb_ConfigDev(a7),a0 ;A0: First ConfigDev
add.l #CurrentBinding_SIZEOF,a7 ;Restore stack pointer
tst.l d0
beq.w .End ;No binding, end
move.l cb_ConfigDev(a0),a0 ;A0: First ConfigDev
.Loop
cmp.l #0,a0 ;Check if ConfigDev exists