MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / Install

Function Install

Kernel/src/arch/x86_64/keyboard.cpp:82–89  ·  view source on GitHub ↗

Register interrupt handler

Source from the content-addressed store, hash-verified

80
81 // Register interrupt handler
82 void Install() {
83 DeviceManager::RegisterDevice(kbDev);
84
85 IDT::RegisterInterruptHandler(IRQ0 + 1, Handler);
86 APIC::IO::MapLegacyIRQ(1);
87
88 outportb(0xF0, 1); // Set scan code 1
89 }
90}

Callers

nothing calls this directly

Calls 4

RegisterDeviceFunction · 0.85
RegisterInterruptHandlerFunction · 0.85
MapLegacyIRQFunction · 0.85
outportbFunction · 0.85

Tested by

no test coverage detected