summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-07 07:47:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-07 07:47:35 +0000
commitd636d0b2a9627a6fe931fb5ef63cb9f1fae8d10e (patch)
tree6f374c5199c992d59deee48161804db1dbabd478 /sys/arch
parenta18dd829375e446ca22af98dc283f34da965edbc (diff)
delete impossible to reach code, use more defined constants
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/mvme68k/dev/cl.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/arch/mvme68k/dev/cl.c b/sys/arch/mvme68k/dev/cl.c
index 6f4e761ee79..c74e7ddb477 100644
--- a/sys/arch/mvme68k/dev/cl.c
+++ b/sys/arch/mvme68k/dev/cl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cl.c,v 1.10 1996/04/28 11:06:00 deraadt Exp $ */
+/* $OpenBSD: cl.c,v 1.11 1996/05/07 07:47:34 deraadt Exp $ */
/*
* Copyright (c) 1995 Dale Rahn. All rights reserved.
@@ -351,13 +351,10 @@ clattach(parent, self, aux)
sc->sc_pcctwo->pcc2_sccerr = 0x01; /* clear errors */
/* enable all interrupts at ca_ipl */
- sc->sc_pcctwo->pcc2_sccirq = 0x10 | (ca->ca_ipl & 0x7);
- sc->sc_pcctwo->pcc2_scctx = 0x10 | (ca->ca_ipl & 0x7);
- sc->sc_pcctwo->pcc2_sccrx = 0x10 | (ca->ca_ipl & 0x7);
+ sc->sc_pcctwo->pcc2_sccirq = PCC2_IRQ_IEN | (ca->ca_ipl & 0x7);
+ sc->sc_pcctwo->pcc2_scctx = PCC2_IRQ_IEN | (ca->ca_ipl & 0x7);
+ sc->sc_pcctwo->pcc2_sccrx = PCC2_IRQ_IEN | (ca->ca_ipl & 0x7);
break;
- default:
- /* oops */
- panic ("cl driver on unknown bus\n");
}
evcnt_attach(&sc->sc_dev, "intr", &sc->sc_txintrcnt);