mirror of
https://github.com/rdolbeau/VintageBusFPGA_Common.git
synced 2026-01-11 23:42:48 +00:00
improve #if's
This commit is contained in:
parent
bd8d1da000
commit
7ae8cfa1df
@ -25,7 +25,9 @@ UInt32 Primary(SEBlock* seblock) {
|
||||
SwapMMUMode ( &busMode ); // to32 // this likely won't work on older MacII ???
|
||||
|
||||
PRIM_WRITEREG(GOBOFB_VBL_MASK, 0);// disable interrupts on FB
|
||||
#ifdef ENABLE_RAMDSK
|
||||
PRIM_WRITEREG(DMA_IRQ_CTL, revb(0x2));// disable/clear interrupts on DSK
|
||||
#endif
|
||||
|
||||
/* PRIM_WRITEREG(GOBOFB_DEBUG, 0x87654321);// trace */
|
||||
/* PRIM_WRITEREG(GOBOFB_DEBUG, busMode);// trace */
|
||||
@ -34,7 +36,8 @@ UInt32 Primary(SEBlock* seblock) {
|
||||
vres = __builtin_bswap32((UInt32)PRIM_READREG(GOBOFB_VRES)); // fixme: endianness
|
||||
|
||||
/* initialize DRAM controller */
|
||||
#ifndef QEMU
|
||||
#if !defined(QEMU) && !defined(IISIFPGA)
|
||||
// IIisFPGA should have the hardware initializer, as SDRAM needs to work before the Mac ROM probes it for memory expansion
|
||||
sdram_init(a32);
|
||||
#endif
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user