diff options
author | dzwdz | 2023-09-03 01:51:36 +0200 |
---|---|---|
committer | dzwdz | 2023-09-03 01:51:36 +0200 |
commit | 59dfa24f6f944ab769b7c6101e2ce386ed5b9579 (patch) | |
tree | 22e7c6988d220cfbc96137ee31fd183877bbed1b | |
parent | f8732691b48284bf1fe50f03142c52223a99859c (diff) |
misc: remove old debug prints
the rtl8139 mac wasn't being read correctly anyways, and the init stuff
wasn't revelant in ages.
the rest is relatively useful
-rw-r--r-- | src/cmd/init/init.c | 2 | ||||
-rw-r--r-- | src/kernel/arch/amd64/driver/rtl8139.c | 3 |
2 files changed, 0 insertions, 5 deletions
diff --git a/src/cmd/init/init.c b/src/cmd/init/init.c index 72b5c5a..8682dd5 100644 --- a/src/cmd/init/init.c +++ b/src/cmd/init/init.c @@ -42,12 +42,10 @@ void redirect(const char *exe, const char *out, const char *in) { } int main(void) { - const char *teststr = "I am teststr.\n"; hid_t killswitch_pipe[2]; freopen("/kdev/com1", "a+", stdout); freopen("/kdev/com1", "a+", stderr); - printf("[init] stage 2, main at %p, teststr at %p\n", &main, teststr); MOUNT_AT("/") { fs_dirinject2((const char*[]){ diff --git a/src/kernel/arch/amd64/driver/rtl8139.c b/src/kernel/arch/amd64/driver/rtl8139.c index 737053e..d55a58f 100644 --- a/src/kernel/arch/amd64/driver/rtl8139.c +++ b/src/kernel/arch/amd64/driver/rtl8139.c @@ -80,9 +80,6 @@ void rtl8139_init(uint32_t bdf) { rx_irq_enable(false); - uint64_t mac = (((uint64_t)port_in32(iobase + MAC + 4) & 0xFFFF) << 32) + port_in32(iobase + MAC); - kprintf("rtl8139 mac %012x\n", mac); - vfs_root_register("/kdev/eth", accept); } |