Port-atari archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
IPL_NET on if_le_vme.c
While reading source, I have a question.
Here, IPL_NET is 5 and PSL_IPL is 0x0700,
therefore, the condition always false?
I'm not sure but how about this?
Index: sys/arch/atari/vme/if_le_vme.c
===================================================================
RCS file: /cvsroot/src/sys/arch/atari/vme/if_le_vme.c,v
retrieving revision 1.23
diff -u -r1.23 if_le_vme.c
--- sys/arch/atari/vme/if_le_vme.c 4 Apr 2008 12:25:06 -0000 1.23
+++ sys/arch/atari/vme/if_le_vme.c 23 Jun 2008 04:35:37 -0000
@@ -324,7 +324,7 @@
struct lance_softc *sc = &lesc->sc_am7990.lsc;
uint16_t csr0;
- if ((sr & PSL_IPL) < (IPL_NET & PSL_IPL))
+ if ((sr & PSL_IPL) < PSL_IPL5)
am7990_intr(sc);
else {
sc->sc_saved_csr0 = csr0 = lerdcsr(sc, LE_CSR0);
---
Tetsuya Isaki <isaki%pastel-flower.jp@localhost / isaki%NetBSD.org@localhost>
Home |
Main Index |
Thread Index |
Old Index