From 6f72e28d04348ad4539679949609675b114896e1 Mon Sep 17 00:00:00 2001 From: andrewfish Date: Wed, 27 Jan 2010 02:47:47 +0000 Subject: 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 --- EmbeddedPkg/Ebl/EfiDevice.c | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'EmbeddedPkg/Ebl/EfiDevice.c') diff --git a/EmbeddedPkg/Ebl/EfiDevice.c b/EmbeddedPkg/Ebl/EfiDevice.c index 7633d66934..e129a3cb8c 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 -- cgit v1.2.3