Fixes ether initialization
authorBarret Rhoden <brho@cs.berkeley.edu>
Sun, 26 Jan 2014 22:07:42 +0000 (14:07 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Sun, 26 Jan 2014 22:53:01 +0000 (14:53 -0800)
We were unable to initialize more than one ethernet card.  Whichever was
linked in first would have its reset method run each time.

This ethernet init needs work anyways - seems like a lot of extra allocs
and resets.

kern/drivers/dev/ether.c

index 29eb3f7..8b1118c 100644 (file)
@@ -696,7 +696,7 @@ etherreset(void)
                        }
                        #endif
                        if(cards[n].reset(ether))
-                               break;
+                               continue;
                        /* might be fucked a bit - reset() doesn't know the type.  might not
                         * even matter, except for debugging. */
                        ether->type = cards[n].type;