code: 9ferno

Download patch

ref: 33b33d8006f651e7e19d0e08734bfdb326c17db8
parent: 73d7f19cdee40eff4e78c2326c4c338828b57945
author: joe9 <joe9mail@gmail.com>
date: Wed Jul 14 13:34:50 EDT 2021

ether8169 from 9front

--- a/os/pc/ether8169.c
+++ b/os/pc/ether8169.c
@@ -795,7 +795,7 @@
 		return;
 	}
 	if(waserror()){
-		print("#l%d: rtl8169: %s\n", edev->ctlrno, up->errstr);
+		print("#l%d: rtl8169: %s\n", edev->ctlrno, up->env->errstr);
 		qunlock(&ctlr->alock);
 		nexterror();
 	}
@@ -842,7 +842,7 @@
 	poperror();
 	poperror();
 
-	kproc("rtl8169", rtl8169reseter, edev);
+	kproc("rtl8169", rtl8169reseter, edev, 0);
 
 	qunlock(&ctlr->alock);
 	poperror();
--- a/os/pc64/pc64
+++ b/os/pc64/pc64
@@ -61,6 +61,7 @@
 #	ps2mouse
 	ethermedium
 ##	pppmedium ppp compress
+	ether8169	pci ethermii
 	ether82563	pci
 	etherx550	pci
 #	ethersink