mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:37:35 +00:00
Import the "gerbert" kernel I worked on earlier this year.
It's a lot crappier than I remembered it. It's gonna need a lot of work.
This commit is contained in:
parent
f608629704
commit
9396108034
55 changed files with 4600 additions and 0 deletions
19
Kernel/PIC.h
Normal file
19
Kernel/PIC.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
#pragma once
|
||||
|
||||
namespace PIC {
|
||||
|
||||
void enable(BYTE number);
|
||||
void disable(BYTE number);
|
||||
void eoi(BYTE number);
|
||||
void initialize();
|
||||
|
||||
}
|
||||
|
||||
class IRQHandlerScope {
|
||||
public:
|
||||
explicit IRQHandlerScope(BYTE irq) : m_irq(irq) { }
|
||||
~IRQHandlerScope() { PIC::eoi(m_irq); }
|
||||
|
||||
private:
|
||||
BYTE m_irq { 0 };
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue