Fix reading from and writting to APIC registers
This commit is contained in:
parent
5b48525b1d
commit
e886baa0d8
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user