]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/BaseLibInternals.h
Split out Synchronization Library from Base Library
[mirror_edk2.git] / MdePkg / Library / BaseLib / BaseLibInternals.h
index 9c6044b606908d12e73b9317f201fb6045286817..19ed01beda74e15081368f4903012cf97d44fb30 100644 (file)
@@ -19,7 +19,6 @@
 #include <Library/BaseLib.h>\r
 #include <Library/BaseMemoryLib.h>\r
 #include <Library/DebugLib.h>\r
-#include <Library/TimerLib.h>\r
 #include <Library/PcdLib.h>\r
 \r
 //\r
@@ -303,7 +302,7 @@ InternalMathDivRemS64x64 (
   IN      INT64                     Dividend,\r
   IN      INT64                     Divisor,\r
   OUT     INT64                     *Remainder  OPTIONAL\r
- );\r
 );\r
 \r
 /**\r
   Transfers control to a function starting with a new stack.\r
@@ -368,98 +367,6 @@ IsNodeInList (
   IN      CONST LIST_ENTRY      *Node\r
   );\r
 \r
-\r
-/**\r
-  Performs an atomic increment of an 32-bit unsigned integer.\r
-\r
-  Performs an atomic increment of the 32-bit unsigned integer specified by\r
-  Value and returns the incremented value. The increment operation must be\r
-  performed using MP safe mechanisms. The state of the return value is not\r
-  guaranteed to be MP safe.\r
-\r
-  @param  Value A pointer to the 32-bit value to increment.\r
-\r
-  @return The incremented value.\r
-\r
-**/\r
-UINT32\r
-EFIAPI\r
-InternalSyncIncrement (\r
-  IN      volatile UINT32           *Value\r
-  );\r
-\r
-\r
-/**\r
-  Performs an atomic decrement of an 32-bit unsigned integer.\r
-\r
-  Performs an atomic decrement of the 32-bit unsigned integer specified by\r
-  Value and returns the decrement value. The decrement operation must be\r
-  performed using MP safe mechanisms. The state of the return value is not\r
-  guaranteed to be MP safe.\r
-\r
-  @param  Value A pointer to the 32-bit value to decrement.\r
-\r
-  @return The decrement value.\r
-\r
-**/\r
-UINT32\r
-EFIAPI\r
-InternalSyncDecrement (\r
-  IN      volatile UINT32           *Value\r
-  );\r
-\r
-\r
-/**\r
-  Performs an atomic compare exchange operation on a 32-bit unsigned integer.\r
-\r
-  Performs an atomic compare exchange operation on the 32-bit unsigned integer\r
-  specified by Value.  If Value is equal to CompareValue, then Value is set to\r
-  ExchangeValue and CompareValue is returned.  If Value is not equal to CompareValue,\r
-  then Value is returned.  The compare exchange operation must be performed using\r
-  MP safe mechanisms.\r
-\r
-  @param  Value         A pointer to the 32-bit value for the compare exchange\r
-                        operation.\r
-  @param  CompareValue  32-bit value used in compare operation.\r
-  @param  ExchangeValue 32-bit value used in exchange operation.\r
-\r
-  @return The original *Value before exchange.\r
-\r
-**/\r
-UINT32\r
-EFIAPI\r
-InternalSyncCompareExchange32 (\r
-  IN      volatile UINT32           *Value,\r
-  IN      UINT32                    CompareValue,\r
-  IN      UINT32                    ExchangeValue\r
-  );\r
-\r
-\r
-/**\r
-  Performs an atomic compare exchange operation on a 64-bit unsigned integer.\r
-\r
-  Performs an atomic compare exchange operation on the 64-bit unsigned integer specified\r
-  by Value.  If Value is equal to CompareValue, then Value is set to ExchangeValue and\r
-  CompareValue is returned.  If Value is not equal to CompareValue, then Value is returned.\r
-  The compare exchange operation must be performed using MP safe mechanisms.\r
-\r
-  @param  Value         A pointer to the 64-bit value for the compare exchange\r
-                        operation.\r
-  @param  CompareValue  64-bit value used in compare operation.\r
-  @param  ExchangeValue 64-bit value used in exchange operation.\r
-\r
-  @return The original *Value before exchange.\r
-\r
-**/\r
-UINT64\r
-EFIAPI\r
-InternalSyncCompareExchange64 (\r
-  IN      volatile UINT64           *Value,\r
-  IN      UINT64                    CompareValue,\r
-  IN      UINT64                    ExchangeValue\r
-  );\r
-\r
-\r
 /**\r
   Worker function that returns a bit field from Operand.\r
 \r
@@ -472,10 +379,10 @@ InternalSyncCompareExchange64 (
   @return The bit field read.\r
 \r
 **/\r
-unsigned int\r
+UINTN\r
 EFIAPI\r
 BitFieldReadUint (\r
-  IN      unsigned int              Operand,\r
+  IN      UINTN                     Operand,\r
   IN      UINTN                     StartBit,\r
   IN      UINTN                     EndBit\r
   );\r
@@ -497,13 +404,13 @@ BitFieldReadUint (
   @return The new value.\r
 \r
 **/\r
-unsigned int\r
+UINTN\r
 EFIAPI\r
 BitFieldOrUint (\r
-  IN      unsigned int              Operand,\r
+  IN      UINTN                     Operand,\r
   IN      UINTN                     StartBit,\r
   IN      UINTN                     EndBit,\r
-  IN      unsigned int              OrData\r
+  IN      UINTN                     OrData\r
   );\r
 \r
 \r
@@ -523,13 +430,13 @@ BitFieldOrUint (
   @return The new value.\r
 \r
 **/\r
-unsigned int\r
+UINTN\r
 EFIAPI\r
 BitFieldAndUint (\r
-  IN      unsigned int              Operand,\r
+  IN      UINTN                     Operand,\r
   IN      UINTN                     StartBit,\r
   IN      UINTN                     EndBit,\r
-  IN      unsigned int              AndData\r
+  IN      UINTN                     AndData\r
   );\r
 \r
 \r
@@ -579,7 +486,7 @@ InternalLongJump (
   Reads the current Global Descriptor Table Register(GDTR) descriptor.\r
 \r
   Reads and returns the current GDTR descriptor and returns it in Gdtr. This\r
-  function is only available on IA-32 and X64.\r
+  function is only available on IA-32 and x64.\r
 \r
   @param  Gdtr  Pointer to a GDTR descriptor.\r
 \r
@@ -594,7 +501,7 @@ InternalX86ReadGdtr (
   Writes the current Global Descriptor Table Register (GDTR) descriptor.\r
 \r
   Writes and the current GDTR descriptor specified by Gdtr. This function is\r
-  only available on IA-32 and X64.\r
+  only available on IA-32 and x64.\r
 \r
   @param  Gdtr  Pointer to a GDTR descriptor.\r
 \r
@@ -609,7 +516,7 @@ InternalX86WriteGdtr (
   Reads the current Interrupt Descriptor Table Register(GDTR) descriptor.\r
 \r
   Reads and returns the current IDTR descriptor and returns it in Idtr. This\r
-  function is only available on IA-32 and X64.\r
+  function is only available on IA-32 and x64.\r
 \r
   @param  Idtr  Pointer to a IDTR descriptor.\r
 \r
@@ -624,7 +531,7 @@ InternalX86ReadIdtr (
   Writes the current Interrupt Descriptor Table Register(GDTR) descriptor.\r
 \r
   Writes the current IDTR descriptor and returns it in Idtr. This function is\r
-  only available on IA-32 and X64.\r
+  only available on IA-32 and x64.\r
 \r
   @param  Idtr  Pointer to a IDTR descriptor.\r
 \r
@@ -640,7 +547,7 @@ InternalX86WriteIdtr (
 \r
   Saves the current floating point/SSE/SSE2 state to the buffer specified by\r
   Buffer. Buffer must be aligned on a 16-byte boundary. This function is only\r
-  available on IA-32 and X64.\r
+  available on IA-32 and x64.\r
 \r
   @param  Buffer  Pointer to a buffer to save the floating point/SSE/SSE2 context.\r
 \r
@@ -656,7 +563,7 @@ InternalX86FxSave (
 \r
   Restores the current floating point/SSE/SSE2 state from the buffer specified\r
   by Buffer. Buffer must be aligned on a 16-byte boundary. This function is\r
-  only available on IA-32 and X64.\r
+  only available on IA-32 and x64.\r
 \r
   @param  Buffer  Pointer to a buffer to save the floating point/SSE/SSE2 context.\r
 \r
@@ -790,7 +697,7 @@ InternalX86EnablePaging64 (
 \r
   Disables the 64-bit paging mode on the CPU and returns to 32-bit protected\r
   mode. This function assumes the current execution mode is 64-paging mode.\r
-  This function is only available on X64. After the 64-bit paging mode is\r
+  This function is only available on x64. After the 64-bit paging mode is\r
   disabled, control is transferred to the function specified by EntryPoint\r
   using the new stack specified by NewStack and passing in the parameters\r
   specified by Context1 and Context2. Context1 and Context2 are optional and\r
@@ -828,6 +735,865 @@ InternalX86DisablePaging64 (
 // IPF specific functions\r
 //\r
 \r
+//\r
+// Structure definition for look up table.\r
+//\r
+typedef struct {\r
+  UINT64 Index;\r
+  UINT64 (*Function) (VOID);\r
+} REGISTER_ENTRY;\r
+\r
+\r
+/**\r
+  Reads control register DCR.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_DCR\r
+\r
+  @return The 64-bit control register DCR.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterDcr (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register ITM.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_ITM\r
+\r
+  @return The 64-bit control register ITM.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterItm (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register IVA.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_IVA\r
+\r
+  @return The 64-bit control register IVA.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterIva (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register PTA.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_PTA\r
+\r
+  @return The 64-bit control register PTA.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterPta (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register IPSR.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_IPSR\r
+\r
+  @return The 64-bit control register IPSR.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterIpsr (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register ISR.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_ISR\r
+\r
+  @return The 64-bit control register ISR.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterIsr (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register IIP.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_IIP\r
+\r
+  @return The 64-bit control register IIP.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterIip (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register IFA.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_IFA\r
+\r
+  @return The 64-bit control register IFA.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterIfa (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register ITIR.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_ITIR\r
+\r
+  @return The 64-bit control register ITIR.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterItir (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register IIPA.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_IIPA\r
+\r
+  @return The 64-bit control register IIPA.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterIipa (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register IFS.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_IFS\r
+\r
+  @return The 64-bit control register IFS.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterIfs (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register IIM.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_IIM\r
+\r
+  @return The 64-bit control register IIM.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterIim (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register IHA.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_IHA\r
+\r
+  @return The 64-bit control register IHA.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterIha (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register LID.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_LID\r
+\r
+  @return The 64-bit control register LID.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterLid (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register IVR.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_IVR\r
+\r
+  @return The 64-bit control register IVR.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterIvr (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register TPR.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_TPR\r
+\r
+  @return The 64-bit control register TPR.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterTpr (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register EOI.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_EOI\r
+\r
+  @return The 64-bit control register EOI.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterEoi (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register IRR0.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_IRR0\r
+\r
+  @return The 64-bit control register IRR0.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterIrr0 (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register IRR1.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_IRR1\r
+\r
+  @return The 64-bit control register IRR1.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterIrr1 (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register IRR2.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_IRR2\r
+\r
+  @return The 64-bit control register IRR2.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterIrr2 (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register IRR3.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_IRR3\r
+\r
+  @return The 64-bit control register IRR3.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterIrr3 (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register ITV.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_ITV\r
+\r
+  @return The 64-bit control register ITV.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterItv (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register PMV.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_PMV\r
+\r
+  @return The 64-bit control register PMV.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterPmv (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register CMCV.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_CMCV\r
+\r
+  @return The 64-bit control register CMCV.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterCmcv (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register LRR0.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_LRR0\r
+\r
+  @return The 64-bit control register LRR0.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterLrr0 (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads control register LRR1.\r
+\r
+  This is a worker function for AsmReadControlRegister()\r
+  when its parameter Index is IPF_CONTROL_REGISTER_LRR1\r
+\r
+  @return The 64-bit control register LRR1.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadControlRegisterLrr1 (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register K0.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_K0\r
+\r
+  @return The 64-bit application register K0.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterK0 (\r
+  VOID\r
+  );\r
+\r
+\r
+\r
+/**\r
+  Reads application register K1.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_K1\r
+\r
+  @return The 64-bit application register K1.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterK1 (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register K2.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_K2\r
+\r
+  @return The 64-bit application register K2.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterK2 (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register K3.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_K3\r
+\r
+  @return The 64-bit application register K3.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterK3 (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register K4.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_K4\r
+\r
+  @return The 64-bit application register K4.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterK4 (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register K5.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_K5\r
+\r
+  @return The 64-bit application register K5.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterK5 (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register K6.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_K6\r
+\r
+  @return The 64-bit application register K6.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterK6 (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register K7.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_K7\r
+\r
+  @return The 64-bit application register K7.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterK7 (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register RSC.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_RSC\r
+\r
+  @return The 64-bit application register RSC.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterRsc (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register BSP.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_BSP\r
+\r
+  @return The 64-bit application register BSP.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterBsp (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register BSPSTORE.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_BSPSTORE\r
+\r
+  @return The 64-bit application register BSPSTORE.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterBspstore (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register RNAT.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_RNAT\r
+\r
+  @return The 64-bit application register RNAT.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterRnat (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register FCR.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_FCR\r
+\r
+  @return The 64-bit application register FCR.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterFcr (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register EFLAG.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_EFLAG\r
+\r
+  @return The 64-bit application register EFLAG.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterEflag (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register CSD.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_CSD\r
+\r
+  @return The 64-bit application register CSD.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterCsd (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register SSD.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_SSD\r
+\r
+  @return The 64-bit application register SSD.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterSsd (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register CFLG.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_CFLG\r
+\r
+  @return The 64-bit application register CFLG.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterCflg (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register FSR.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_FSR\r
+\r
+  @return The 64-bit application register FSR.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterFsr (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register FIR.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_FIR\r
+\r
+  @return The 64-bit application register FIR.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterFir (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register FDR.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_FDR\r
+\r
+  @return The 64-bit application register FDR.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterFdr (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register CCV.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_CCV\r
+\r
+  @return The 64-bit application register CCV.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterCcv (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register UNAT.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_UNAT\r
+\r
+  @return The 64-bit application register UNAT.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterUnat (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register FPSR.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_FPSR\r
+\r
+  @return The 64-bit application register FPSR.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterFpsr (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register ITC.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_ITC\r
+\r
+  @return The 64-bit application register ITC.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterItc (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register PFS.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_PFS\r
+\r
+  @return The 64-bit application register PFS.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterPfs (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register LC.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_LC\r
+\r
+  @return The 64-bit application register LC.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterLc (\r
+  VOID\r
+  );\r
+\r
+\r
+/**\r
+  Reads application register EC.\r
+\r
+  This is a worker function for AsmReadApplicationRegister()\r
+  when its parameter Index is IPF_APPLICATION_REGISTER_EC\r
+\r
+  @return The 64-bit application register EC.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmReadApplicationRegisterEc (\r
+  VOID\r
+  );\r
+\r
+\r
+\r
 /**\r
   Transfers control to a function starting with a new stack.\r
 \r