Re-enable and sightly speed up the clearing of the BSS segment upon boot.
This commit is contained in:
parent
b4853f4160
commit
3d75f60b8f
|
@ -122,13 +122,15 @@ PENDING_GRP2 = $00B00104
|
||||||
coldboot: lea ___STACK,sp
|
coldboot: lea ___STACK,sp
|
||||||
bsr _int_disable_all
|
bsr _int_disable_all
|
||||||
|
|
||||||
lea ___BSSSTART,a0
|
; Clear BSS segment
|
||||||
|
lea ___BSSSTART,a0
|
||||||
move.l #___BSSSIZE,d0
|
move.l #___BSSSIZE,d0
|
||||||
beq callmain
|
add.l a0,d0
|
||||||
|
beq.s callmain
|
||||||
|
|
||||||
; clrloop: clr.l (a0)+
|
clrloop: clr.l (a0)+
|
||||||
; subq.l #4,d0
|
cmpa.l d0,a0
|
||||||
; bne clrloop
|
bne.s clrloop
|
||||||
|
|
||||||
; Set TRAP #15 vector handler
|
; Set TRAP #15 vector handler
|
||||||
lea h_trap_15,a0 ; Address of the handler
|
lea h_trap_15,a0 ; Address of the handler
|
||||||
|
|
Loading…
Reference in a new issue