mirror of
https://github.com/rdolbeau/NuBusFPGA.git
synced 2024-11-19 08:31:46 +00:00
remove primary/secondary asm stubs
This commit is contained in:
parent
4468ffd68c
commit
c9e752218b
@ -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. */
|
||||
|
@ -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;
|
||||
|
@ -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. */
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user