+++ /dev/null
-/*++\r
-\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. 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
-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:\r
-\r
- PeHotRelocate.c\r
-\r
-Abstract:\r
-\r
-\r
---*/\r
-\r
-#include "Runtime.h"\r
-\r
-STATIC\r
-VOID *\r
-RuntimePeImageAddress (\r
- IN RUNTIME_IMAGE_RELOCATION_DATA *Image,\r
- IN UINTN Address\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Converts an image address to the loaded address\r
-\r
-Arguments:\r
-\r
- Image - The relocation data of the image being loaded\r
-\r
- Address - The address to be converted to the loaded address\r
-\r
-Returns:\r
-\r
- NULL if the address can not be converted, otherwise, the converted address\r
-\r
---*/\r
-{\r
- if (Address >= (Image->ImageSize) << EFI_PAGE_SHIFT) {\r
- return NULL;\r
- }\r
-\r
- return (CHAR8 *) ((UINTN) Image->ImageBase + Address);\r
-}\r
-\r