Use InterruptService in PIT.cc, Keyboard.cc
This commit is contained in:
@ -10,7 +10,9 @@
|
||||
|
||||
#include "Keyboard.h"
|
||||
#include "kernel/system/Globals.h"
|
||||
#include "kernel/service/InterruptService.h"
|
||||
#include "Key.h"
|
||||
#include "kernel/system/System.h"
|
||||
|
||||
namespace Device {
|
||||
|
||||
@ -334,8 +336,9 @@ void Keyboard::set_led(char led, bool on) {
|
||||
// Registriert die Tastatur ISR im IntDispatcher
|
||||
// und erlaubt den keyboard interrupt im PIC
|
||||
void Keyboard::plugin() {
|
||||
Kernel::intdis.assign(Kernel::IntDispatcher::keyboard, *this);
|
||||
PIC::allow(PIC::keyboard);
|
||||
auto &interruptService = Kernel::System::getService<Kernel::InterruptService>();
|
||||
interruptService.assignInterrupt(Kernel::IntDispatcher::KEYBOARD, *this);
|
||||
interruptService.allowInterrupt(PIC::KEYBOARD);
|
||||
}
|
||||
|
||||
void Keyboard::trigger() {
|
||||
|
@ -10,6 +10,8 @@
|
||||
|
||||
#include "PIT.h"
|
||||
#include "kernel/system/Globals.h"
|
||||
#include "kernel/system/System.h"
|
||||
#include "kernel/service/InterruptService.h"
|
||||
|
||||
namespace Device {
|
||||
|
||||
@ -49,8 +51,9 @@ void PIT::plugin() {
|
||||
|
||||
/* hier muss Code eingefuegt werden */
|
||||
|
||||
Kernel::intdis.assign(Kernel::IntDispatcher::timer, *this);
|
||||
PIC::allow(PIC::timer);
|
||||
auto &interruptService = Kernel::System::getService<Kernel::InterruptService>();
|
||||
interruptService.assignInterrupt(Kernel::IntDispatcher::TIMER, *this);
|
||||
interruptService.allowInterrupt(PIC::TIMER);
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
|
Reference in New Issue
Block a user