mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +00:00
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:
parent
0b7fc525e1
commit
8d9b6c57b5
2 changed files with 14 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue