diff options
author | chuck <chuck@cvs.openbsd.org> | 1996-08-02 02:49:49 +0000 |
---|---|---|
committer | chuck <chuck@cvs.openbsd.org> | 1996-08-02 02:49:49 +0000 |
commit | f31fc35863becd22681c39ed2dcda5f2230aeae4 (patch) | |
tree | 4c60773cf35c19e2bd7bac11784c31313fddf3b7 /sys | |
parent | 2f223d4e9cea0449db8a15c56580daf6404ca9c5 (diff) |
fix:
- fix memory sizing bug for 2MB cards. driver now works for both 512KB
and 2MB ATM cards (we just got 10 2MB cards).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/midway.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/midway.c b/sys/dev/ic/midway.c index bdf33902f24..534bf3e86a3 100644 --- a/sys/dev/ic/midway.c +++ b/sys/dev/ic/midway.c @@ -1,5 +1,5 @@ -/* $OpenBSD: midway.c,v 1.12 1996/07/17 03:52:01 chuck Exp $ */ -/* (sync'd to midway.c 1.61) */ +/* $OpenBSD: midway.c,v 1.13 1996/08/02 02:49:48 chuck Exp $ */ +/* (sync'd to midway.c 1.62) */ /* * @@ -557,12 +557,12 @@ struct en_softc *sc; for (check = MID_PROBEOFF ; check < lcv ; check += MID_PROBSIZE) { reg = EN_READ(sc, check); if (reg != check) { /* found an alias! */ - lcv -= MID_PROBSIZE; /* take one step back */ goto done_probe; /* and quit */ } } } done_probe: + lcv -= MID_PROBSIZE; /* take one step back */ sc->en_obmemsz = (lcv + 4) - MID_RAMOFF; /* |