Declares interfaces to assembly functions.
More...
Go to the source code of this file.
Declares interfaces to assembly functions.
Definition in file asm.h.
◆ __lgdt()
void __lgdt |
( |
_In_ void * |
gdtr | ) |
|
|
inline |
Reads SGDT.
- Parameters
-
gdtr | A pointer to read GDTR |
Definition at line 165 of file asm.h.
◆ __sgdt()
void __sgdt |
( |
_Out_ void * |
gdtr | ) |
|
|
inline |
Writes to GDT.
- Parameters
-
Definition at line 161 of file asm.h.
◆ AsmInitializeVm()
bool __stdcall AsmInitializeVm |
( |
_In_ void(*)(_In_ ULONG_PTR, _In_ ULONG_PTR, _In_opt_ void *) |
vm_initialization_routine, |
|
|
_In_opt_ void * |
context |
|
) |
| |
A wrapper for vm_initialization_routine.
- Parameters
-
vm_initialization_routine | A function pointer for entering VMX-mode |
context | A context parameter for vm_initialization_routine |
- Returns
- true if vm_initialization_routine was successfully executed
◆ AsmInvalidateInternalCaches()
void __stdcall AsmInvalidateInternalCaches |
( |
| ) |
|
Invalidates internal caches.
◆ AsmInvept()
Invalidates translations derived from EPT.
- Parameters
-
invept_type | A type of invalidation |
invept_descriptor | A reference to EPTP to invalidate |
- Returns
- 0 on success, 1 w/ an error code or 2 w/o an error code on failure
◆ AsmInvvpid()
Invalidate translations based on VPID.
- Parameters
-
invvpid_type | A type of invalidation |
invvpid_descriptor | A description of translations to invalidate |
- Returns
- 0 on success, 1 w/ an error code or 2 w/o an error code on failure
◆ AsmLoadAccessRightsByte()
ULONG_PTR __stdcall AsmLoadAccessRightsByte |
( |
_In_ ULONG_PTR |
segment_selector | ) |
|
Loads access rights byte.
- Parameters
-
segment_selector | A value to get access rights byte |
- Returns
- An access rights byte
◆ AsmReadCS()
USHORT __stdcall AsmReadCS |
( |
| ) |
|
◆ AsmReadDS()
USHORT __stdcall AsmReadDS |
( |
| ) |
|
◆ AsmReadES()
USHORT __stdcall AsmReadES |
( |
| ) |
|
◆ AsmReadFS()
USHORT __stdcall AsmReadFS |
( |
| ) |
|
◆ AsmReadGDT()
void __stdcall AsmReadGDT |
( |
_Out_ Gdtr * |
gdtr | ) |
|
Reads SGDT.
- Parameters
-
gdtr | A pointer to read GDTR |
◆ AsmReadGS()
USHORT __stdcall AsmReadGS |
( |
| ) |
|
◆ AsmReadLDTR()
USHORT __stdcall AsmReadLDTR |
( |
| ) |
|
◆ AsmReadSS()
USHORT __stdcall AsmReadSS |
( |
| ) |
|
◆ AsmReadTR()
USHORT __stdcall AsmReadTR |
( |
| ) |
|
◆ AsmVmmEntryPoint()
void __stdcall AsmVmmEntryPoint |
( |
| ) |
|
An entry point of VMM where gets called whenever VM-exit occurred.
◆ AsmVmxCall()
unsigned char __stdcall AsmVmxCall |
( |
_In_ ULONG_PTR |
hypercall_number, |
|
|
_In_opt_ void * |
context |
|
) |
| |
Executes VMCALL with the given hypercall number and a context.
- Parameters
-
hypercall_number | A hypercall number |
context | A context parameter for VMCALL |
- Returns
- Equivalent to VmxStatus
◆ AsmWriteCR2()
void __stdcall AsmWriteCR2 |
( |
_In_ ULONG_PTR |
cr2_value | ) |
|
Writes to CR2.
- Parameters
-
cr2_value | A value to write |
◆ AsmWriteCS()
void __stdcall AsmWriteCS |
( |
_In_ USHORT |
segment_selector | ) |
|
Writes to CS.
- Parameters
-
segment_selector | A value to write |
◆ AsmWriteDS()
void __stdcall AsmWriteDS |
( |
_In_ USHORT |
segment_selector | ) |
|
Writes to DS.
- Parameters
-
segment_selector | A value to write |
◆ AsmWriteES()
void __stdcall AsmWriteES |
( |
_In_ USHORT |
segment_selector | ) |
|
Writes to ES.
- Parameters
-
segment_selector | A value to write |
◆ AsmWriteFS()
void __stdcall AsmWriteFS |
( |
_In_ USHORT |
segment_selector | ) |
|
Writes to FS.
- Parameters
-
segment_selector | A value to write |
◆ AsmWriteGDT()
void __stdcall AsmWriteGDT |
( |
_In_ const Gdtr * |
gdtr | ) |
|
Writes to GDT.
- Parameters
-
◆ AsmWriteGS()
void __stdcall AsmWriteGS |
( |
_In_ USHORT |
segment_selector | ) |
|
Writes to GS.
- Parameters
-
segment_selector | A value to write |
◆ AsmWriteSS()
void __stdcall AsmWriteSS |
( |
_In_ USHORT |
segment_selector | ) |
|
Writes to SS.
- Parameters
-
segment_selector | A value to write |
◆ AsmWriteTR()
void __stdcall AsmWriteTR |
( |
_In_ USHORT |
task_register | ) |
|
Writes to TR.
- Parameters
-
task_register | A value to write |