Initialize MXCSR register
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
2023-02-05 00:30:12 +01:00
parent 5eaf7d63a3
commit c6cadbd655
3 changed files with 29 additions and 0 deletions

View File

@@ -141,6 +141,25 @@ ArLoadInterruptDescriptorTable(IN PVOID Source)
: "memory");
}
/**
* Loads the value in the source operand into the MXCSR register
*
* @param Source
* Supplies a source value to be loaded into the MXCSR register.
*
* @return This routine does not return any value.
*
* @since XT 1.0
*/
XTCDECL
VOID
ArLoadMxcsrRegister(IN ULONG Source)
{
asm volatile("ldmxcsr %0"
:
: "m" (Source));
}
/**
* Loads source data into specified segment.
*