mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:57:35 +00:00
Kernel: Mark SDHC InterruptStatus structured view as const
This view is really nice to check flags, but when clearing them we must make sure that we only ever try to set 1 bit at a time, which makes setting bits through the structured view a footgun, as that fetches, ors in and then sets, potentially resetting other flags.
This commit is contained in:
parent
f51e8e785c
commit
aea244efe1
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ struct HostControlRegisterMap {
|
|||
u32 tuning_error : 1;
|
||||
u32 response_error : 1;
|
||||
u32 vendor_specific_error : 1;
|
||||
};
|
||||
} const;
|
||||
u32 raw;
|
||||
} interrupt_status;
|
||||
u32 interrupt_status_enable;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue