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();

;-)

With this patch applied, it seems to run fine with TEST_MODE 0
(the machine is still alive as I'm typing this :-/):

uli@uli:/home/uli > more /proc/freemware 
monitor-->host IRQ redirect counts
   0:         3
  14:         1
nothing count: 26588

I'll play around with it a little more.  Great stuff!

Bye,
Ulrich

-- 
  Ulrich Weigand,
  IMMD 1, Universitaet Erlangen-Nuernberg,
  Martensstr. 3, D-91058 Erlangen, Phone: +49 9131 85-7688

Reply via email to