mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-05-21 10:38:24 +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:
18
Kernel/CMOS.cpp
Normal file
18
Kernel/CMOS.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "CMOS.h"
|
||||
#include "IO.h"
|
||||
|
||||
namespace CMOS {
|
||||
|
||||
BYTE read(BYTE index)
|
||||
{
|
||||
IO::out8(0x70, index);
|
||||
return IO::in8(0x71);
|
||||
}
|
||||
|
||||
void write(BYTE index, BYTE data)
|
||||
{
|
||||
IO::out8(0x70, index);
|
||||
IO::out8(0x71, data);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user