mirror of
https://github.com/LIV2/at_apollo_device.git
synced 2025-12-05 22:22:45 +00:00
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:
parent
477f1b1157
commit
27c2878d0b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user