Rick Payne wrote:
>   - GCC 2.95.2 is used instead of GCC 2.7.2.
>     This newer compiler seems to generate faster code.
>     However, it may miscompile the "pri;joff" event loop in the
>     standard Alteon firmware.  Beware!  (We fixed that for our
>     application by changing the event loop code).
> 
> As I'm currently doing nothing adventurous (just wanting to compile the 
> stock firmware), how did you change the code to work - or is your 
> application vastly different?

This is the critical fix for GCC 2.95, which is required if you're using
the Linux development tools:

--- openfw-orig/src/nic/fw2/common/fwmain.c     Tue Mar 28 20:02:41 2000
+++ openfw-fixed/src/nic/fw2/common/fwmain.c    Wed Jun  7 17:15:48 2000
@@ -1687,7 +1687,7 @@
         .set reorder
         nop
         halt
-        " : "=r" (events), "=r" (high_event)
+        " : "=&r" (events), "=&r" (high_event)
         : "r" (event_mask), "r" (ev_handlerp), "r" (dispp)
     );
     /* not reached */

enjoy,
-- Jamie
