Browse Source

Fix gcc-induced reference to memcpy

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
21bc2015f2
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/drivers/net/tulip.c

+ 2
- 1
src/drivers/net/tulip.c View File

1417
         tp->csr0 |= 0x2000;
1417
         tp->csr0 |= 0x2000;
1418
 
1418
 
1419
     if (media_cap[tp->default_port] & MediaIsMII) {
1419
     if (media_cap[tp->default_port] & MediaIsMII) {
1420
-        u16 media2advert[] = { 0x20, 0x40, 0x03e0, 0x60, 0x80, 0x100, 0x200 };
1420
+        static const u16 media2advert[] = { 0x20, 0x40, 0x03e0, 0x60,
1421
+					    0x80, 0x100, 0x200 };
1421
         tp->mii_advertise = media2advert[tp->default_port - 9];
1422
         tp->mii_advertise = media2advert[tp->default_port - 9];
1422
         tp->mii_advertise |= (tp->flags & HAS_8023X); /* Matching bits! */
1423
         tp->mii_advertise |= (tp->flags & HAS_8023X); /* Matching bits! */
1423
     }
1424
     }

Loading…
Cancel
Save