diff options
author | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-27 02:47:47 +0000 |
---|---|---|
committer | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-27 02:47:47 +0000 |
commit | 6f72e28d04348ad4539679949609675b114896e1 (patch) | |
tree | 400aead84d74026d523bacb5a23089f588fc5819 /EmbeddedPkg/Ebl | |
parent | 3b66da94989fc44890483b67b7d13c031c2f9fdc (diff) | |
download | edk2-6f72e28d04348ad4539679949609675b114896e1.zip edk2-6f72e28d04348ad4539679949609675b114896e1.tar.gz edk2-6f72e28d04348ad4539679949609675b114896e1.tar.bz2 |
Added a library for the default exception handler and started to add a dissasembler. Cleaned up some issues with BlockIo in BeagleBoard and add some extra info on Ebl devices command to show if a blk device has a file system on it.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9830 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EmbeddedPkg/Ebl')
-rw-r--r-- | EmbeddedPkg/Ebl/EfiDevice.c | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/EmbeddedPkg/Ebl/EfiDevice.c b/EmbeddedPkg/Ebl/EfiDevice.c index 7633d66..e129a3c 100644 --- a/EmbeddedPkg/Ebl/EfiDevice.c +++ b/EmbeddedPkg/Ebl/EfiDevice.c @@ -81,13 +81,33 @@ EblPrintBlkIoInfo ( )
{
UINT64 DeviceSize;
-
+ UINTN Index;
+ UINTN Max;
+ EFI_OPEN_FILE *FsFile;
if (File == NULL) {
return;
}
AsciiPrint (" %a: ", File->DeviceName);
+
+ // print out name of file system, if any, on this block device
+ Max = EfiGetDeviceCounts (EfiOpenFileSystem);
+ if (Max != 0) {
+ for (Index = 0; Index < Max; Index++) {
+ FsFile = EfiDeviceOpenByType (EfiOpenFileSystem, Index);
+ if (FsFile != NULL) {
+ if (FsFile->EfiHandle == File->EfiHandle) {
+ AsciiPrint ("fs%d: ", Index);
+ EfiClose (FsFile);
+ break;
+ }
+ }
+ EfiClose (FsFile);
+ }
+ }
+
+ // Print out useful Block IO media properties
if (File->FsBlockIoMedia.RemovableMedia) {
AsciiPrint ("Removable ");
}
@@ -103,7 +123,6 @@ EblPrintBlkIoInfo ( EfiClose (File);
}
-
/**
Print information about the Load File devices.
If the device supports PXE dump out extra information
|