Comment out atari stuff.
Initialize SysBase and IntuitionBase that will be needed by C++ code. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38933 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -94,13 +94,25 @@ floppy_start:
|
|||||||
movem.l %d1-%d7/%a0-%a6,-(%sp)
|
movem.l %d1-%d7/%a0-%a6,-(%sp)
|
||||||
|
|
||||||
// seems like a6 is already set to ExecBase when called from the ROM ?
|
// seems like a6 is already set to ExecBase when called from the ROM ?
|
||||||
// copy it
|
move.l 4.w,%a6 // exec base
|
||||||
move.l 4.w,%a6
|
jsr _FindResident(%a6)
|
||||||
lea _execbase(%pc),%a2
|
lea SysBase(%pc),%a2
|
||||||
move.l %a6,(%a2)
|
move.l %a6,(%a2)
|
||||||
|
|
||||||
//
|
// lea dosname_boot(%pc),%a1
|
||||||
|
// move.l 4.w,%a6 // exec base
|
||||||
|
// jsr _FindResident(%a6)
|
||||||
|
// lea DosBase(%pc),%a2
|
||||||
|
// tst.l %d0
|
||||||
|
// beq.s _floppy_err
|
||||||
|
// move.l %d0,(%a2)
|
||||||
|
|
||||||
|
lea intname_boot(%pc),%a1
|
||||||
|
jsr _FindResident(%a6)
|
||||||
|
tst.l %d0
|
||||||
|
beq.s _floppy_err
|
||||||
|
lea IntuitionBase(%pc),%a2
|
||||||
|
move.l %d0,(%a2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -127,19 +139,13 @@ _floppy_err:
|
|||||||
|
|
||||||
|
|
||||||
_display_alert:
|
_display_alert:
|
||||||
move.l 4.w,%a6
|
move.l %a6,-(%sp)
|
||||||
lea intname_boot(%pc),%a1
|
move IntuitionBase,%a6
|
||||||
jsr _OldOpenLibrary(%a6)
|
|
||||||
tst.l %d0
|
|
||||||
beq.s _floppy_err
|
|
||||||
lea _intbase(%pc),%a2
|
|
||||||
move.l %d0,(%a2)
|
|
||||||
move.l %d0,%a6
|
|
||||||
|
|
||||||
lea alert_data(%pc),%a0
|
lea alert_data(%pc),%a0
|
||||||
moveq #0,%d0
|
moveq #0,%d0
|
||||||
move.l #30,%d1
|
move.l #30,%d1
|
||||||
jsr _DisplayAlert(%a6)
|
jsr _DisplayAlert(%a6)
|
||||||
|
move.l (%sp)+,%a6
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
|
||||||
@@ -465,11 +471,11 @@ alert_extra:
|
|||||||
.ascii "\0\0"
|
.ascii "\0\0"
|
||||||
.byte 0
|
.byte 0
|
||||||
|
|
||||||
_execbase:
|
GLOBAL(SysBase):
|
||||||
.long 0
|
.long 0
|
||||||
_dosbase:
|
GLOBAL(DosBase):
|
||||||
.long 0
|
.long 0
|
||||||
_intbase:
|
GLOBAL(IntuitionBase):
|
||||||
.long 0
|
.long 0
|
||||||
|
|
||||||
end_buff:
|
end_buff:
|
||||||
@@ -484,6 +490,8 @@ end_buff:
|
|||||||
* \AUTO\HAIKU.PRG and ARAnyM BOOTSTRAP() support code
|
* \AUTO\HAIKU.PRG and ARAnyM BOOTSTRAP() support code
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
|
||||||
prg_start:
|
prg_start:
|
||||||
lea label_prg,%a0
|
lea label_prg,%a0
|
||||||
bsr puts
|
bsr puts
|
||||||
@@ -553,6 +561,7 @@ super_done:
|
|||||||
move.b #1,AMIGA_ZBEOS_BASE + gBootedFromImage - _bs_entry
|
move.b #1,AMIGA_ZBEOS_BASE + gBootedFromImage - _bs_entry
|
||||||
|
|
||||||
move.l #0,%d0
|
move.l #0,%d0
|
||||||
|
#endif
|
||||||
|
|
||||||
//jmp AMIGA_ZBEOS_BASE+512
|
//jmp AMIGA_ZBEOS_BASE+512
|
||||||
jmp _start
|
jmp _start
|
||||||
|
|||||||
Reference in New Issue
Block a user