);\r
\r
\r
+/**\r
+ Set CD bit and clear NW bit of CR0 followed by a WBINVD.\r
+\r
+ Disables the caches by setting the CD bit of CR0 to 1, clearing the NW bit of CR0 to 0,\r
+ and executing a WBINVD instruction. This function is only available on IA-32 and x64.\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+AsmDisableCache (\r
+ VOID\r
+ );\r
+\r
+\r
+/**\r
+ Perform a WBINVD and clear both the CD and NW bits of CR0.\r
+\r
+ Enables the caches by executing a WBINVD instruction and then clear both the CD and NW\r
+ bits of CR0 to 0. This function is only available on IA-32 and x64.\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+AsmEnableCache (\r
+ VOID\r
+ );\r
+\r
+\r
/**\r
Returns the lower 32-bits of a Machine Specific Register(MSR).\r
\r
**/\r
\r
/**\r
- Disables caches.\r
+ Set CD bit and clear NW bit of CR0 followed by a WBINVD.\r
\r
- Set the CD bit of CR0 to 1, clear the NW bit of CR0 to 0, and flush all caches with a\r
- WBINVD instruction.\r
+ Disables the caches by setting the CD bit of CR0 to 1, clearing the NW bit of CR0 to 0,\r
+ and executing a WBINVD instruction. This function is only available on IA-32 and x64.\r
\r
**/\r
VOID\r
**/\r
\r
/**\r
- Enabled caches.\r
+ Perform a WBINVD and clear both the CD and NW bits of CR0.\r
\r
- Flush all caches with a WBINVD instruction, clear the CD bit of CR0 to 0, and clear \r
- the NW bit of CR0 to 0\r
+ Enables the caches by executing a WBINVD instruction and then clear both the CD and NW\r
+ bits of CR0 to 0. This function is only available on IA-32 and x64.\r
\r
**/\r
VOID\r