Skip to content

Commit db73f17

Browse files
author
Chris Hooper
committed
Fixed bug where SDMAC might not be detected on 68030 Amiga. Closes: #8
1 parent 25331ed commit db73f17

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77
PROGS := sdmac
88

9-
VER ?= 0.9+
9+
VER ?= 1.0+
1010
#VER := $(shell awk '/\$$VER:/{print $$7}' sdmac.c)
1111
ADF_FILE := sdmac_$(VER).adf
1212
ZIP_FILE := sdmac_$(VER).zip

sdmac.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SDMAC Version 0.9 2024-10-17
2+
* SDMAC Version 1.0 2025-09-22
33
* -----------------------------
44
* Utility to inspect and test an Amiga 3000's Super DMAC (SDMAC) and
55
* WD SCSI controller for correct configuration and operation.
@@ -1139,13 +1139,13 @@ get_sdmac_version(void)
11391139
}
11401140

11411141
INTERRUPTS_DISABLE();
1142-
ovalue = *ADDR32(SDMAC_WTC);
1143-
*ADDR32(SDMAC_WTC) = wvalue;
1142+
ovalue = *ADDR32(SDMAC_WTC_ALT);
1143+
*ADDR32(SDMAC_WTC_ALT) = wvalue;
11441144
#define FORCE_READ(x) asm volatile ("" : : "r" (x));
11451145
/* Push out write and buffer something else on the bus */
11461146
(void) *ADDR32(RAMSEY_VER);
11471147
rvalue = *ADDR32(SDMAC_WTC);
1148-
*ADDR32(SDMAC_WTC) = ovalue;
1148+
*ADDR32(SDMAC_WTC_ALT) = ovalue;
11491149
INTERRUPTS_ENABLE();
11501150

11511151
if (flag_debug)

0 commit comments

Comments
 (0)