This commit is contained in:
Eggert Jung
2025-05-10 19:42:48 +02:00
parent 383561a4f6
commit 7214ce8e53
8 changed files with 220 additions and 5 deletions

View File

@@ -71,9 +71,18 @@ void config(uint8_t slot, Core::Interrupt::Vector vector,
}
void allow(uint8_t slot) {
assert(slot < slot_max);
RedirectionTableEntry entry = readEntry(slot);
entry.interrupt_mask = UNMASKED;
writeEntry(slot, entry);
}
void forbid(uint8_t slot) { (void)slot; }
void forbid(uint8_t slot) {
assert(slot < slot_max);
RedirectionTableEntry entry = readEntry(slot);
entry.interrupt_mask = MASKED;
writeEntry(slot, entry);
}
bool status(uint8_t slot) {
(void)slot;