Implement ArReadFSDualWord() routine
Visas pārbaudes ir veiksmīgas
ci/woodpecker/push/build Pipeline was successful

Šī revīzija ir iekļauta:
2023-02-07 23:19:22 +01:00
vecāks 75c519a70c
revīzija a32e18b237
2 mainīti faili ar 25 papildinājumiem un 0 dzēšanām

Parādīt failu

@@ -270,6 +270,27 @@ ArReadControlRegister(IN USHORT ControlRegister)
return Value;
}
/**
* Reads dualword from a memory location specified by an offset relative to the beginning of the FS segment.
*
* @param Offset
* Specifies the offset from the beginning of FS segment.
*
* @return Returns the value read from the specified memory location relative to FS segment.
*
* @since XT 1.0
*/
XTCDECL
ULONG
ArReadFSDualWord(ULONG Offset)
{
ULONG Value;
asm volatile("movl %%fs:%a[Offset], %k[Value]"
: [Value] "=r" (Value)
: [Offset] "ir" (Offset));
return Value;
}
/**
* Reads a 64-bit value from the requested Model Specific Register (MSR).
*