From 83754e005ac63a45400abb9698c4348b890ae739 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Thu, 7 Mar 2013 21:04:18 +0000 Subject: [PATCH] MII: only include code when its actually used. git-svn-id: svn://kolibrios.org@3351 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/branches/net/drivers/bus/mii.inc | 8 +++----- kernel/branches/net/drivers/pcnet32.asm | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/kernel/branches/net/drivers/bus/mii.inc b/kernel/branches/net/drivers/bus/mii.inc index 543d923d9f..9e0824b99c 100644 --- a/kernel/branches/net/drivers/bus/mii.inc +++ b/kernel/branches/net/drivers/bus/mii.inc @@ -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 diff --git a/kernel/branches/net/drivers/pcnet32.asm b/kernel/branches/net/drivers/pcnet32.asm index 47fff6937e..dd50446e67 100644 --- a/kernel/branches/net/drivers/pcnet32.asm +++ b/kernel/branches/net/drivers/pcnet32.asm @@ -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