shithub: 9ferno

Download patch

ref: 15f66afc972b33e5d3ed05c2c1a3cb5adec51b53
parent: b0dd7c0479dffe59dbc08177df84ba7944c936c0
author: 9ferno <gophone2015@gmail.com>
date: Sat Aug 14 10:59:12 EDT 2021

changed comments

--- a/os/init/disinit.b	Sat Aug 14 10:56:46 2021
+++ b/os/init/disinit.b	Sat Aug 14 10:59:12 2021
@@ -36,13 +36,13 @@
 	sys->bind("#d", "/fd", Sys->MREPL);		# dup(3)
 	sys->bind("#e", "/env", sys->MREPL|sys->MCREATE);	# environment
 #	sys->bind("#i", "/dev", sys->MREPL);	# draw device
-	sys->bind("#l", "/net", sys->MAFTER);	# Network interfaces
+	sys->bind("#l0", "/net", sys->MAFTER);	# Ehernet device
 	sys->bind("#m","/dev",sys->MAFTER);     # pointer/mouse
 	sys->bind("#p", "/prog", sys->MREPL);	# prog device
 	sys->bind("#r", "/dev", sys->MAFTER);	# rtc
 	sys->bind("#t", "/dev", sys->MAFTER);	# serial line
 #	sys->bind("#v","/dev",sys->MAFTER);     # VGA
-	sys->bind("#I", "/net", sys->MAFTER);	# IP
+	sys->bind("#I0", "/net", sys->MAFTER);	# IP
 	sys->bind("#P","/dev",sys->MAFTER);		# arch
 #	sys->bind("#P/realmode","/dev",sys->MAFTER); # not in the arch(3). What is this for?
 #	sys->bind("#P/realmodemem","/dev",sys->MAFTER);# not in the arch(3). What is this for?
--- a/os/pc64/main.c	Sat Aug 14 10:56:46 2021
+++ b/os/pc64/main.c	Sat Aug 14 10:59:12 2021
@@ -175,7 +175,7 @@
 	doc("procinit");
 	procinit();
 	doc("links");
-	links();
+	links(); /* runs etherlink() of the link'ed ethernet devices */
 	doc("chandevreset");
 	chandevreset(); /* reset() all devices */
 	doc("userinit");