Architecture specific initialization prior to processor structures initialization
Todas las comprobaciones han sido exitosas
ci/woodpecker/push/build Pipeline was successful

Este commit está contenido en:
2023-01-30 20:34:05 +01:00
padre 6f068513cd
commit a761d3125a
Se han modificado 8 ficheros con 82 adiciones y 3 borrados

Ver fichero

@@ -526,6 +526,26 @@ ArWriteControlRegister(IN USHORT ControlRegister,
}
}
/**
* Writes the specified value to the program status and control (EFLAGS) register.
*
* @param Value
* The value to write to the EFLAGS register.
*
* @return This routine does not return any value.
*
* @since XT 1.0
*/
XTCDECL
VOID
ArWriteEflagsRegister(IN UINT_PTR Value)
{
asm volatile("push %0\n"
"popf"
:
: "rim" (Value));
}
/**
* Writes a 64-bit value to the requested Model Specific Register (MSR).
*

Ver fichero

@@ -487,6 +487,26 @@ ArWriteControlRegister(IN USHORT ControlRegister,
}
}
/**
* Writes the specified value to the program status and control (EFLAGS) register.
*
* @param Value
* The value to write to the EFLAGS register.
*
* @return This routine does not return any value.
*
* @since XT 1.0
*/
XTCDECL
VOID
ArWriteEflagsRegister(IN UINT_PTR Value)
{
asm volatile("push %0\n"
"popf"
:
: "rim" (Value));
}
/**
* Writes a 64-bit value to the requested Model Specific Register (MSR).
*