mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-31 14:48:17 +00:00
ACPI: Examine bit width in Generic address structure before asserting
Also, the switch-case flow is simplified for IO access within a Generic address strucuture's handling.
This commit is contained in:
parent
5d7855adea
commit
b13417ddb4
Notes:
sideshowbarker
2024-07-19 08:45:31 +09:00
Author: https://github.com/supercomputer7
Commit: b13417ddb4
Pull-request: https://github.com/SerenityOS/serenity/pull/1415
Reviewed-by: https://github.com/awesomekling
3 changed files with 35 additions and 16 deletions
|
@ -122,6 +122,13 @@ namespace ACPI {
|
|||
DWord = 3,
|
||||
QWord = 4
|
||||
};
|
||||
enum class BitWidth {
|
||||
Undefined = 0,
|
||||
Byte = 8,
|
||||
Word = 16,
|
||||
DWord = 32,
|
||||
QWord = 64
|
||||
};
|
||||
}
|
||||
|
||||
namespace Structures {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue