From 4daee62439872fa879543432d2f267765a83988b Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Fri, 25 Mar 2016 00:38:52 -0400 Subject: [PATCH] Remove console logging from interrupts and descriptors They will be back... --- src/Descriptors.cc | 8 -------- src/Interrupts.cc | 4 ---- 2 files changed, 12 deletions(-) diff --git a/src/Descriptors.cc b/src/Descriptors.cc index a21e3f2..7f7c080 100644 --- a/src/Descriptors.cc +++ b/src/Descriptors.cc @@ -123,10 +123,6 @@ GDT::load() const { PseudoDescriptor gdt {Size * sizeof(Descriptor) - 1, uint32_t(&mTable)}; - - auto& console = kernel::Console::systemConsole(); - console.printFormat("GDT: base = 0x%08lX, limit = %d\n", gdt.base, gdt.limit); - /* * Load the new GDT with the pointer defined above. The GDT isn't actually * used until the segment registers are reladed. Below, CS is reloaded by @@ -236,10 +232,6 @@ IDT::load() const { PseudoDescriptor idt{Size * sizeof(Descriptor) - 1, uint32_t(&mTable)}; - - auto& console = kernel::Console::systemConsole(); - console.printFormat("IDT: base = 0x%08lX, limit = %d\n", idt.base, idt.limit); - asm volatile("lidt %0\n" : : "m" (idt)); } diff --git a/src/Interrupts.cc b/src/Interrupts.cc index d66878e..b917e1f 100644 --- a/src/Interrupts.cc +++ b/src/Interrupts.cc @@ -76,8 +76,6 @@ InterruptHandler::InterruptHandler() void InterruptHandler::initialize() { - auto& console = kernel::Console::systemConsole(); - // All interrupts start out as "unhandled" for (size_t i = 0; i < IDT::Size; i++) { mIDT.setDescriptor(i, IDT::DescriptorSpec::exceptionHandler(0x8, &unhandledInterrupt)); @@ -97,11 +95,9 @@ InterruptHandler::initialize() mIDT.load(); mPIC.initialize(0x20, 0x28); // Map hardware IRQs to interrupt vectors 32 through 48. - console.printString("Hardware interrupts initialized\n"); // Enable the keyboard interrupt. mPIC.enableInterrupt(1, true); - console.printString("Enabling keyboard interrupt\n"); }