/** @file\r
Function prototypes and defines on Memory Only PE COFF loader\r
\r
- Copyright (c) 2006, Intel Corporation \r
- All rights reserved. This program and the accompanying materials \r
+ Copyright (c) 2006, 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
http://opensource.org/licenses/bsd-license.php \r
)\r
;\r
\r
+//\r
+// These functions are used by the ARM PE/COFF relocation code and by\r
+// the ELF to PE/COFF converter so that is why they are public\r
+//\r
+\r
+/**\r
+ Pass in a pointer to an ARM MOVT or MOVW immediate instruciton and \r
+ return the immediate data encoded in the instruction\r
+\r
+ @param Instruction Pointer to ARM MOVT or MOVW immediate instruction\r
+\r
+ @return Immediate address encoded in the instruction\r
+\r
+**/\r
+UINT16\r
+ThumbMovtImmediateAddress (\r
+ IN UINT16 *Instruction\r
+ );\r
+\r
+/**\r
+ Update an ARM MOVT or MOVW immediate instruction immediate data.\r
+\r
+ @param Instruction Pointer to ARM MOVT or MOVW immediate instruction\r
+ @param Address New addres to patch into the instruction\r
+\r
+**/\r
+VOID\r
+ThumbMovtImmediatePatch (\r
+ IN OUT UINT16 *Instruction,\r
+ IN UINT16 Address\r
+ );\r
+\r
+\r
+\r
#endif\r