]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/Common/PeCoffLib.h
BaseTools: Fix compile error on VS2010
[mirror_edk2.git] / BaseTools / Source / C / Common / PeCoffLib.h
index 31c6f0fca136103e394c20e3a9c9610208572fa7..b56dd753844fe0ff998362786d4c29ee07585f3d 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
        Function prototypes and defines on Memory Only PE COFF loader\r
 \r
-       Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+       Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials                          \r
        are licensed and made available under the terms and conditions of the BSD License         \r
        which accompanies this distribution.  The full text of the license may be found at        \r
@@ -10,8 +10,6 @@
        THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
        WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
 \r
-       Module Name:    PeCoffLib.h\r
-\r
 **/\r
 \r
 #ifndef __BASE_PE_COFF_LIB_H__\r
@@ -159,6 +157,7 @@ PeCoffLoaderGetEntryPoint (
 \r
 **/\r
 UINT16\r
+EFIAPI\r
 ThumbMovtImmediateAddress (\r
   IN UINT16 *Instruction\r
   );\r
@@ -171,11 +170,41 @@ ThumbMovtImmediateAddress (
 \r
 **/\r
 VOID\r
+EFIAPI\r
 ThumbMovtImmediatePatch (\r
   IN OUT UINT16 *Instruction,\r
   IN     UINT16 Address\r
   );\r
 \r
 \r
+/**\r
+  Pass in a pointer to an ARM MOVW/MOVT instruciton pair and \r
+  return the immediate data encoded in the two` instruction\r
+\r
+  @param  Instructions  Pointer to ARM MOVW/MOVT insturction pair\r
+\r
+  @return Immediate address encoded in the instructions\r
+\r
+**/\r
+UINT32\r
+EFIAPI\r
+ThumbMovwMovtImmediateAddress (\r
+  IN UINT16 *Instructions\r
+  );\r
+\r
+/**\r
+  Update an ARM MOVW/MOVT immediate instruction instruction pair.\r
+\r
+  @param  Instructions  Pointer to ARM MOVW/MOVT instruction pair\r
+  @param  Address       New addres to patch into the instructions\r
+**/\r
+VOID\r
+EFIAPI\r
+ThumbMovwMovtImmediatePatch (\r
+  IN OUT UINT16 *Instructions,\r
+  IN     UINT32 Address\r
+  );\r
+\r
+\r
 \r
 #endif\r