1

Initial commit

This commit is contained in:
2023-02-26 21:12:51 +01:00
commit d2ec37332f
69 changed files with 58831 additions and 0 deletions

View File

@ -0,0 +1,7 @@
void IoApic::writeREDTBL(GlobalSystemInterrupt gsi, const REDTBLEntry &redtbl) {
auto val = static_cast<uint64_t>(redtbl);
redtblLock.acquire(); // Synchronized in case of multiple APs
writeIndirectRegister(0x10 + 2 * gsi, val & 0xFFFFFFFF); // Low DW
writeIndirectRegister(0x10 + 2 * gsi + 1, val >> 32); // High DW
redtblLock.release();
}