summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd/init/init.c2
-rw-r--r--src/kernel/arch/amd64/driver/rtl8139.c3
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);
}