MII: only include code when its actually used.

git-svn-id: svn://kolibrios.org@3351 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2013-03-07 21:04:18 +00:00
parent c101fd199a
commit 83754e005a
2 changed files with 4 additions and 6 deletions

View File

@ -136,7 +136,7 @@
if defined mdio_read
if used mii_link_ok
align 4
mii_link_ok:
@ -151,11 +151,9 @@ mii_link_ok:
mov ecx, MII_BMSR
call mdio_read
DEBUGF 1, "eax=0x%x\n", eax
and ax, BMSR_LSTATUS
and eax, BMSR_LSTATUS
DEBUGF 1, "link status=0x%x\n", eax
DEBUGF 1, "link status=0x%x\n", ax
ret

View File

@ -1523,7 +1523,7 @@ check_media:
call [device.read_bcr]
cmp eax, 0xc0
DEBUGF 1, "link status=0x%x\n", eax
DEBUGF 1, "link status=0x%x\n", ax
ret