remove primary/secondary asm stubs

This commit is contained in:
Romain Dolbeau 2022-10-06 23:31:45 +02:00
parent 4468ffd68c
commit c9e752218b
4 changed files with 4 additions and 19 deletions

View File

@ -2,11 +2,4 @@
.byte sExec2 /* Code revision (Primary init) */
.byte sCPU68020 /* CPU type is 68020 */
.short 0 /* Reserved */
.long BeginPrimary-. /* Offset to code. */
BeginPrimary:
MOVE.L %A0, -(%A7)
BSR Primary
MOVE.L (%A7)+, %a0
rts
.long Primary-. /* Offset to code. */

View File

@ -8,6 +8,7 @@
#define PRIM_READREG(reg) \
(*((volatile UInt32*)(a32+GOBOFB_BASE+reg)))
#pragma parameter __D0 Primary(__A0)
UInt32 Primary(SEBlock* seblock) {
UInt32 a32 = 0xF0000000 | ((UInt32)seblock->seSlot << 24);
UInt32 a32_l0, a32_l1;

View File

@ -2,14 +2,4 @@
.byte sExec2 /* Code revision (Primary init) */
.byte sCPU68020 /* CPU type is 68020 */
.short 0 /* Reserved */
.long BeginSecondary-. /* Offset to code. */
BeginSecondary:
MOVE.L %A0, -(%A7)
movea.l #0xfc90001c, %a0
move.l #0xcccccccc, (%a0)
BSR Secondary
movea.l #0xfc90001c, %a0
move.l #0xdddddddd, (%a0)
MOVE.L (%A7)+, %a0
rts
.long Secondary-. /* Offset to code. */

View File

@ -5,6 +5,7 @@
#define SECO_WRITEREG(reg, val) \
*((volatile UInt32*)(a32+GOBOFB_BASE+reg)) = (UInt32)val;
#pragma parameter __D0 Primary(__A0)
UInt32 Secondary(SEBlock* seblock) {
UInt32 a32 = 0xF0000000 | ((UInt32)seblock->seSlot << 24);
UInt32 a32_l0, a32_l1;