Port-atari archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: IPL_NET on if_le_vme.c



(please keep Cc: to me)

isaki%pastel-flower.jp@localhost wrote:

> While reading source, I have a question.
> 
> Here, IPL_NET is 5 and PSL_IPL is 0x0700,
> therefore, the condition always false?

Well, maybe it's my botch on MI softintr(9) change.
IPL_NET was (PSL_S|PSL_IPL3) before that.
(yes, using ipl2psl_table[] on atari might cause some extra overhead.
 now I wonder if it's worth to make all m68k ports consistent..)

> I'm not sure but how about this?
 :
> -     if ((sr & PSL_IPL) < (IPL_NET & PSL_IPL))
> +     if ((sr & PSL_IPL) < PSL_IPL5)

(ipl2psl[IPL_NET] & PSL_IPL) is more reasonable than PSL_IPL5, I think.
---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index