Fix reading from and writting to APIC registers
All checks were successful
Builds / ExectOS (amd64) (push) Successful in 28s
Builds / ExectOS (i686) (push) Successful in 26s

This commit is contained in:
Rafal Kupiec 2023-11-26 16:57:40 +01:00
parent 5b48525b1d
commit e886baa0d8
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -23,7 +23,7 @@ XTFASTCALL
ULONG
HlReadApicRegister(IN APIC_REGISTER Register)
{
return RtlReadRegisterLong((PULONG)APIC_BASE + (Register << 4));
return RtlReadRegisterLong((PULONG)(APIC_BASE + (Register << 4)));
}
/**
@ -44,5 +44,5 @@ VOID
HlWriteApicRegister(IN APIC_REGISTER Register,
IN ULONG Value)
{
RtlWriteRegisterLong((PULONG)APIC_BASE + (Register << 4), Value);
RtlWriteRegisterLong((PULONG)(APIC_BASE + (Register << 4)), Value);
}