Interrupts: Use Optional container in IOAPIC

We return the Optional container in find_redirection_entry_by_vector()
method instead of a raw integer. This makes the code more readable and
correct.
This commit is contained in:
Liav A 2020-03-21 09:45:39 +02:00 committed by Andreas Kling
commit 8d9b6c57b5
Notes: sideshowbarker 2024-07-19 08:08:54 +09:00
2 changed files with 14 additions and 13 deletions

View file

@ -68,7 +68,7 @@ private:
bool is_redirection_entry_masked(u8 index) const;
u8 read_redirection_entry_vector(u8 index) const;
int find_redirection_entry_by_vector(u8 vector) const;
Optional<int> find_redirection_entry_by_vector(u8 vector) const;
void configure_redirections() const;
void write_register(u32 index, u32 value) const;