From b8bd914a0ba2ec68e060ff6f80f4ac60596198b5 Mon Sep 17 00:00:00 2001 From: Romain Dolbeau Date: Tue, 20 Sep 2022 08:39:35 +0200 Subject: [PATCH] fixes suggested on #mac68k --- nubus-to-ztex-gateware/DeclROM/NuBusFPGADrvr.s | 4 +--- .../DeclROM/NuBusFPGARAMDskDrvr_OpenClose.c | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/nubus-to-ztex-gateware/DeclROM/NuBusFPGADrvr.s b/nubus-to-ztex-gateware/DeclROM/NuBusFPGADrvr.s index 1add7f2..ca8a108 100644 --- a/nubus-to-ztex-gateware/DeclROM/NuBusFPGADrvr.s +++ b/nubus-to-ztex-gateware/DeclROM/NuBusFPGADrvr.s @@ -82,9 +82,7 @@ interruptRoutine: movel %a1,%d0 roll #8,%d0 andiw #15,%d0 - moveal #0xd28,%a0 /* JVBLTask */ - /* other codes don't need the intermediate moveal, what's the proper syntax ? */ - moveal (%a0),%a0 + moveal 0xd28,%a0 /* JVBLTask */ jsr (%a0) moveq #1,%d0 rts diff --git a/nubus-to-ztex-gateware/DeclROM/NuBusFPGARAMDskDrvr_OpenClose.c b/nubus-to-ztex-gateware/DeclROM/NuBusFPGARAMDskDrvr_OpenClose.c index 53713d6..eb60cc5 100644 --- a/nubus-to-ztex-gateware/DeclROM/NuBusFPGARAMDskDrvr_OpenClose.c +++ b/nubus-to-ztex-gateware/DeclROM/NuBusFPGARAMDskDrvr_OpenClose.c @@ -138,7 +138,7 @@ OSErr cNuBusFPGARAMDskClose(IOParamPtr pb, /* DCtlPtr */ AuxDCEPtr dce) /* write_reg(dce, GOBOFB_DEBUG, 0xDEAD0001); */ if (dce->dCtlStorage) { - HUnlock(dce->dCtlStorage); + /* HUnlock(dce->dCtlStorage); */ /* not needed before DisposeHandle */ DisposeHandle(dce->dCtlStorage); dce->dCtlStorage = NULL; }