//\r
// Get information about the image being loaded\r
//\r
- Status = gEfiPeiPeCoffLoader->GetImageInfo (gEfiPeiPeCoffLoader, &Image->ImageContext);\r
+ Status = PeCoffLoaderGetImageInfo (&Image->ImageContext);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
}\r
//\r
// Load the image from the file into the allocated memory\r
//\r
- Status = gEfiPeiPeCoffLoader->LoadImage (gEfiPeiPeCoffLoader, &Image->ImageContext);\r
+ Status = PeCoffLoaderLoadImage (&Image->ImageContext);\r
if (EFI_ERROR (Status)) {\r
goto Done;\r
}\r
//\r
// Relocate the image in memory\r
//\r
- Status = gEfiPeiPeCoffLoader->RelocateImage (gEfiPeiPeCoffLoader, &Image->ImageContext);\r
+ Status = PeCoffLoaderRelocateImage (&Image->ImageContext);\r
if (EFI_ERROR (Status)) {\r
goto Done;\r
}\r
//\r
// Unload image, free Image->ImageContext->ModHandle\r
//\r
- gEfiPeiPeCoffLoader->UnloadImage (gEfiPeiPeCoffLoader, &Image->ImageContext);\r
+ PeCoffLoaderUnloadImage (&Image->ImageContext);\r
\r
//\r
// Free our references to the image handle\r