/** @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
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
\r
**/\r
UINT16\r
+EFIAPI\r
ThumbMovtImmediateAddress (\r
IN UINT16 *Instruction\r
);\r
\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