Subject: via_shutdown() weirdness
To: MacBSD General <macbsd-general@NetBSD.ORG>
From: Brian Gaeke <brg@dgate.org>
List: macbsd-general
Date: 06/19/1995 16:12:27
While messing around with the network driver, I noticed the following
irregularity in sys/arch/mac68k/mac68k/via.c:
void via_shutdown()
{
if(VIA2 == VIA2OFF){
>>> via_reg(VIA2, vDirB) |= 0x04; /* Set write for bit 2/ <<<
via_reg(VIA2, vBufB) &= ~0x04; /* Shut down */
}else if(VIA2 == RBVOFF){
via_reg(VIA2, rBufB) &= ~0x04;
}
}
Where it says "Set write for bit 2/" it should say "Set write for bit 2 */"
which has the effect of commenting out the next line. Someone who has been
unable to shut down using 'halt' should try fixing this and seeing if it
has any effect.
-Brian
--
Brian Gaeke, The Dimensional Gate Company Internet E-Mail: <brg@dgate.org>
DGate.ORG system adminstrator / PGP 2.6.2 public key available via finger