mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 16:58:58 +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
Notes:
sideshowbarker
2024-07-19 08:08:54 +09:00
Author: https://github.com/supercomputer7
Commit: 8d9b6c57b5
Pull-request: https://github.com/SerenityOS/serenity/pull/1361
Reviewed-by: https://github.com/awesomekling
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