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

7
code/lapic_write_icr.cpp Normal file
View File

@ -0,0 +1,7 @@
void LocalApic::writeICR(const ICREntry &icrEntry) {
auto val = static_cast<uint64_t>(icrEntry);
icrLock.acquire(); // Synchronized in case of multiple APs
writeDoubleWord(0x310, val >> 32);
writeDoubleWord(0x300, val & 0xFFFFFFFF); // Writing the low DW sends the IPI
icrLock.release();
}