Zero-initialize register before bitfield assignment
All checks were successful
Builds / ExectOS (amd64, debug) (push) Successful in -59m26s
Builds / ExectOS (amd64, release) (push) Successful in -59m27s
Builds / ExectOS (i686, debug) (push) Successful in -59m27s
Builds / ExectOS (i686, release) (push) Successful in -59m29s

This commit is contained in:
2026-05-06 19:58:17 +02:00
parent 8107692d83
commit c5b0d15830

View File

@@ -48,6 +48,7 @@ HL::Pic::AllocateSystemInterrupt(IN UCHAR Irq,
} }
/* Model a logical connection */ /* Model a logical connection */
Register.LongLong = 0;
Register.DeliveryMode = APIC_DM_FIXED; Register.DeliveryMode = APIC_DM_FIXED;
Register.DeliveryStatus = 0; Register.DeliveryStatus = 0;
Register.Destination = HL::Pic::ReadApicRegister(APIC_ID) >> 24; Register.Destination = HL::Pic::ReadApicRegister(APIC_ID) >> 24;
@@ -502,6 +503,7 @@ HL::Pic::InitializeIOApic(VOID)
Controllers[ControllerIndex].LineCount = ((VersionRegister >> 16) & 0xFF) + 1; Controllers[ControllerIndex].LineCount = ((VersionRegister >> 16) & 0xFF) + 1;
/* Set up the default redirection entry for this controller */ /* Set up the default redirection entry for this controller */
Register.LongLong = 0;
Register.DeliveryMode = APIC_DM_FIXED; Register.DeliveryMode = APIC_DM_FIXED;
Register.DeliveryStatus = 0; Register.DeliveryStatus = 0;
Register.Destination = ReadIOApicRegister(&Controllers[ControllerIndex], IOAPIC_ID) >> 24; Register.Destination = ReadIOApicRegister(&Controllers[ControllerIndex], IOAPIC_ID) >> 24;