Ulrich Weigand wrote:
>
> Hello,
>
> > I have not yet got interrupts redirection working properly.
> > If you set TEST_MODE to 0 and recompile, an interrupt seems to
> > cause everything to switch back to the host context, but
> > then the system hangs after a short period of time,
> > or causes a kernel oops.
>
> Well, I guess this is due to this:
>
> --- fmw-990817/kernel/host-linux.c.orig Tue Aug 17 20:50:43 1999
> +++ fmw-990817/kernel/host-linux.c Tue Aug 17 22:13:28 1999
> @@ -237,7 +237,7 @@
> if (monitor_info.vector <= 7)
> soft_int_vector = MASTER_PIC_BASE_VECTOR + monitor_info.vector;
> else
> - soft_int_vector = SLAVE_PIC_BASE_VECTOR + monitor_info.vector;
> + soft_int_vector = SLAVE_PIC_BASE_VECTOR + monitor_info.vector - 8;
>
> soft_int(soft_int_vector);
> sti();
OK, good find, thanks man. Seemed like something simple since it
was working sometimes. I cranked out the code kinda quick so there
may be some other bugs in there too. :^)
-Kevin