forked from xt-sys/exectos
Store physical address as well in the image context
This commit is contained in:
parent
b89121fded
commit
6b2f34f287
@ -211,6 +211,7 @@ typedef struct _PECOFF_IMAGE_CONTEXT
|
||||
UINT ImagePages;
|
||||
UINT ImageSize;
|
||||
LOADER_MEMORY_TYPE MemoryType;
|
||||
PVOID PhysicalAddress;
|
||||
PVOID VirtualAddress;
|
||||
} PECOFF_IMAGE_CONTEXT, *PPECOFF_IMAGE_CONTEXT;
|
||||
|
||||
|
@ -226,6 +226,7 @@ PeLoadImage(IN PEFI_FILE_HANDLE FileHandle,
|
||||
|
||||
/* Store image data and virtual address */
|
||||
ImageData->Data = (PUINT8)(UINT_PTR)Address;
|
||||
ImageData->PhysicalAddress = (PVOID)(UINT_PTR)Address;
|
||||
if(VirtualAddress)
|
||||
{
|
||||
/* Virtual address passed to this routine */
|
||||
|
Loading…
Reference in New Issue
Block a user