3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
25 RuntimePeImageAddress (
26 IN RUNTIME_IMAGE_RELOCATION_DATA
*Image
,
33 Converts an image address to the loaded address
37 Image - The relocation data of the image being loaded
39 Address - The address to be converted to the loaded address
43 NULL if the address can not be converted, otherwise, the converted address
47 if (Address
>= (Image
->ImageSize
) << EFI_PAGE_SHIFT
) {
51 return (CHAR8
*) ((UINTN
) Image
->ImageBase
+ Address
);