Kernel: Simplify MP table parser a little bit more

Get rid of the ConfigurationTableEntryLength enum and just look at the
sizeof() for each entry type.
This commit is contained in:
Andreas Kling 2020-05-23 13:11:51 +02:00
commit b8af5cd8da
Notes: sideshowbarker 2024-07-19 06:13:23 +09:00
2 changed files with 8 additions and 19 deletions

View file

@ -78,17 +78,6 @@ enum class ConfigurationTableEntryType {
CompatibilityBusAddressSpaceModifier = 130
};
enum class ConfigurationTableEntryLength {
Processor = 20,
Bus = 8,
IOAPIC = 8,
IO_Interrupt_Assignment = 8,
Local_Interrupt_Assignment = 8,
SystemAddressSpaceMapping = 20,
BusHierarchyDescriptor = 8,
CompatibilityBusAddressSpaceModifier = 8
};
struct [[gnu::packed]] ExtEntryHeader
{
u8 entry_type;