Fix line endings

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10062 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
andrewfish 2010-02-24 17:22:03 +00:00
parent ea02543004
commit 14e00c13be
1 changed files with 28 additions and 27 deletions

View File

@ -184,15 +184,16 @@ CEntryPoint (
{
VOID *HobBase;
// Build a basic HOB list
HobBase = (VOID *)(UINTN)(FixedPcdGet32(PcdEmbeddedFdBaseAddress) + FixedPcdGet32(PcdEmbeddedFdSize));
CreateHobList (MemoryBase, MemorySize, HobBase, StackBase);
//Set up Pin muxing.
PadConfiguration ();
// Set up system clocking
ClockInit ();
// Build a basic HOB list
HobBase = (VOID *)(UINTN)(FixedPcdGet32(PcdEmbeddedFdBaseAddress) + FixedPcdGet32(PcdEmbeddedFdSize));
CreateHobList (MemoryBase, MemorySize, HobBase, StackBase);
// Enable program flow prediction, if supported.
ArmEnableBranchPrediction ();
@ -222,35 +223,34 @@ CEntryPoint (
VOID *PeCoffImage;
UINT32 Offset;
CHAR8 *FilePath;
FfsAnyFvFindFirstFile (EFI_FV_FILETYPE_SECURITY_CORE, &VolumeHandle, &FileHandle);
Status = FfsFindSectionData (EFI_SECTION_TE, FileHandle, &PeCoffImage);
if (EFI_ERROR (Status)) {
// Usually is a TE (PI striped down PE/COFF), but could be a full PE/COFF
Status = FfsFindSectionData (EFI_SECTION_PE32, FileHandle, &PeCoffImage);
}
if (!EFI_ERROR (Status)) {
FfsAnyFvFindFirstFile (EFI_FV_FILETYPE_SECURITY_CORE, &VolumeHandle, &FileHandle);
Status = FfsFindSectionData (EFI_SECTION_TE, FileHandle, &PeCoffImage);
if (EFI_ERROR (Status)) {
// Usually is a TE (PI striped down PE/COFF), but could be a full PE/COFF
Status = FfsFindSectionData (EFI_SECTION_PE32, FileHandle, &PeCoffImage);
}
if (!EFI_ERROR (Status)) {
Offset = PeCoffGetSizeOfHeaders (PeCoffImage);
FilePath = PeCoffLoaderGetPdbPointer (PeCoffImage);
if (FilePath != NULL) {
//
// In general you should never have to use #ifdef __CC_ARM in the code. It
// is hidden in the away in the MdePkg. But here we would like to print differnt things
// for different toolchains.
//
#ifdef __CC_ARM
// Print out the command for the RVD debugger to load symbols for this image
DEBUG ((EFI_D_ERROR, "load /a /ni /np %a &0x%08x\n", SecDeCygwinPathIfNeeded (FilePath), (CHAR8 *)PeCoffImage + Offset));
FilePath = PeCoffLoaderGetPdbPointer (PeCoffImage);
if (FilePath != NULL) {
//
// In general you should never have to use #ifdef __CC_ARM in the code. It
// is hidden in the away in the MdePkg. But here we would like to print differnt things
// for different toolchains.
//
#ifdef __CC_ARM
// Print out the command for the RVD debugger to load symbols for this image
DEBUG ((EFI_D_ERROR, "load /a /ni /np %a &0x%08x\n", SecDeCygwinPathIfNeeded (FilePath), (CHAR8 *)PeCoffImage + Offset));
#elif __GNUC__
// This may not work correctly if you generate PE/COFF directlyas then the Offset would not be required
DEBUG ((EFI_D_ERROR, "add-symbol-file %a 0x%08x\n", FilePath, PeCoffImage + Offset));
// This may not work correctly if you generate PE/COFF directlyas then the Offset would not be required
DEBUG ((EFI_D_ERROR, "add-symbol-file %a 0x%08x\n", FilePath, PeCoffImage + Offset));
#else
DEBUG ((EFI_D_ERROR, "SEC starts at 0x%08x with an entry point at 0x%08x %a\n", PeCoffImage, _ModuleEntryPoint, FilePath));
DEBUG ((EFI_D_ERROR, "SEC starts at 0x%08x with an entry point at 0x%08x %a\n", PeCoffImage, _ModuleEntryPoint, FilePath));
#endif
}
}
}
DEBUG_CODE_END ();
@ -271,6 +271,7 @@ CEntryPoint (
LzmaGuidedSectionExtraction
);
// Assume the FV that contains the SEC (our code) also contains a compressed FV.
DecompressFirstFv ();
// Load the DXE Core and transfer control to it