From 2e79963e19f8201623fbb88e640ca81b784a6f5c Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Mon, 10 Jun 2013 21:06:36 +0000 Subject: [PATCH] Bugfix in dec21x4x driver git-svn-id: svn://kolibrios.org@3639 a494cfbc-eb01-0410-851d-a64ba20cac60 --- drivers/ethernet/dec21x4x.asm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/ethernet/dec21x4x.asm b/drivers/ethernet/dec21x4x.asm index c08c50dec7..bf1bbf79fc 100644 --- a/drivers/ethernet/dec21x4x.asm +++ b/drivers/ethernet/dec21x4x.asm @@ -675,7 +675,7 @@ reset: call start_link ; wait a bit - mov esi, 3000 + mov esi, 500 call Sleep ;---------------------------------------------------- @@ -783,6 +783,8 @@ init_ring: align 4 start_link: + DEBUGF 1,"Starting link\n" + ; TODO: write working code here ret @@ -1037,10 +1039,10 @@ int_handler: set_io 0 set_io CSR5 - in eax, dx - test eax, eax + in ax, dx + test ax, ax + out dx, ax ; send it back to ACK jnz .got_it - out dx, eax ; send it back to ACK .continue: add esi, 4 dec ecx