Initial commit
This commit is contained in:
12
code/lapic_apr_example.cpp
Normal file
12
code/lapic_apr_example.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
void LocalApic::synchronizeArbitrationIds() {
|
||||
ICREntry icrEntry{};
|
||||
icrEntry.vector = 0;
|
||||
icrEntry.deliveryMode = ICREntry::DeliveryMode::INIT;
|
||||
icrEntry.destinationMode = ICREntry::DestinationMode::PHYSICAL;
|
||||
icrEntry.level = ICREntry::Level::DEASSERT;
|
||||
icrEntry.triggerMode = ICREntry::TriggerMode::LEVEL;
|
||||
icrEntry.destinationShorthand = ICREntry::DestinationShorthand::ALL;
|
||||
icrEntry.destination = 0;
|
||||
writeICR(icrEntry);
|
||||
waitForIpiDispatch();
|
||||
}
|
||||
Reference in New Issue
Block a user