Implement more CPU-related routines

This commit is contained in:
2023-11-15 14:52:18 +01:00
parent f0c20074c6
commit ccd0514416
4 changed files with 377 additions and 6 deletions

View File

@@ -58,6 +58,10 @@ XTCDECL
ULONG_PTR
ArReadControlRegister(IN USHORT ControlRegister);
XTCDECL
ULONG_PTR
ArReadDebugRegister(IN USHORT DebugRegister);
XTCDECL
ULONG
ArReadFSDualWord(ULONG Offset);
@@ -66,6 +70,10 @@ XTCDECL
ULONGLONG
ArReadModelSpecificRegister(IN ULONG Register);
XTCDECL
UINT
ArReadMxCsrRegister();
XTCDECL
ULONGLONG
ArReadTimeStampCounter();
@@ -88,6 +96,10 @@ XTCDECL
VOID
ArStoreInterruptDescriptorTable(OUT PVOID Destination);
XTCDECL
VOID
ArStoreLocalDescriptorTable(OUT PVOID Destination);
XTCDECL
VOID
ArStoreSegment(IN USHORT Segment,
@@ -102,6 +114,11 @@ VOID
ArWriteControlRegister(IN USHORT ControlRegister,
IN UINT_PTR Value);
XTCDECL
VOID
ArWriteDebugRegister(IN USHORT DebugRegister,
IN UINT_PTR Value);
XTCDECL
VOID
ArWriteEflagsRegister(IN UINT_PTR Value);