Common routines for reading from and writing to CPU control registers
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
2022-12-23 14:30:52 +01:00
parent 3e8bdfe9fe
commit 3ab1695968
6 changed files with 192 additions and 366 deletions

View File

@@ -37,42 +37,11 @@ HlIoPortOutByte(IN USHORT Port,
XTAPI
ULONG_PTR
HlReadCR0();
XTAPI
ULONG_PTR
HlReadCR2();
XTAPI
ULONG_PTR
HlReadCR3();
XTAPI
ULONG_PTR
HlReadCR4();
XTAPI
ULONG_PTR
HlReadCR8();
HlReadControlRegister(USHORT ControlRegister);
XTAPI
VOID
HlWriteCR0(UINT_PTR Data);
XTAPI
VOID
HlWriteCR2(UINT_PTR Data);
XTAPI
VOID
HlWriteCR3(UINT_PTR Data);
XTAPI
VOID
HlWriteCR4(UINT_PTR Data);
XTAPI
VOID
HlWriteCR8(UINT_PTR Data);
HlWriteControlRegister(USHORT ControlRegister,
UINT_PTR Value);
#endif /* __XTDK_AMD64_HLFUNCS_H */