From 59dfa24f6f944ab769b7c6101e2ce386ed5b9579 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 3 Sep 2023 01:51:36 +0200 Subject: 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 --- src/cmd/init/init.c | 2 -- src/kernel/arch/amd64/driver/rtl8139.c | 3 --- 2 files changed, 5 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3