Remove console logging from interrupts and descriptors
They will be back...
This commit is contained in:
parent
c18af4d222
commit
4daee62439
2 changed files with 0 additions and 12 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue