mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-22 10:29:31 +00:00
include ../first/macos.i, for APPLE_DRIVER, manage 32bitmode and boot unit
This commit is contained in:
parent
b2b8839439
commit
fa06e26c9f
@ -6,13 +6,11 @@
|
|||||||
|
|
||||||
.cpu 68000
|
.cpu 68000
|
||||||
|
|
||||||
.macro SysError
|
.include "../first/macos.i"
|
||||||
.short 0xA9C9
|
|
||||||
.endm
|
|
||||||
|
|
||||||
.macro NewPtrClear
|
#if defined(APPLE_DRIVER)
|
||||||
.short 0xA31E
|
.include "../first/32bitmode.i"
|
||||||
.endm
|
#endif
|
||||||
|
|
||||||
.equ paramstring_length, 1024
|
.equ paramstring_length, 1024
|
||||||
|
|
||||||
@ -23,6 +21,7 @@
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
_start: bra setup
|
_start: bra setup
|
||||||
|
|
||||||
_signature: .dc.b 'E','M','0','7'
|
_signature: .dc.b 'E','M','0','7'
|
||||||
|
|
||||||
/* EM06 */
|
/* EM06 */
|
||||||
@ -32,6 +31,11 @@ _configuration: .skip paramstring_length, 0
|
|||||||
|
|
||||||
.align 4
|
.align 4
|
||||||
setup:
|
setup:
|
||||||
|
#if defined(APPLE_DRIVER)
|
||||||
|
lea boot_unit(%pc), %a0
|
||||||
|
move.l %d5, (%a0)
|
||||||
|
switch32bitmode
|
||||||
|
#endif
|
||||||
/* relocate C code, need to be compiled with -fpic */
|
/* relocate C code, need to be compiled with -fpic */
|
||||||
|
|
||||||
bsr relocate
|
bsr relocate
|
||||||
@ -103,3 +107,12 @@ got_store:
|
|||||||
|
|
||||||
exit_relocate:
|
exit_relocate:
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
#if defined(APPLE_DRIVER)
|
||||||
|
PRAM_buffer:
|
||||||
|
.long 0
|
||||||
|
|
||||||
|
.globl boot_unit
|
||||||
|
boot_unit:
|
||||||
|
.long 0
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user