diff options
author | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-04-30 19:40:17 +0000 |
---|---|---|
committer | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-04-30 19:40:17 +0000 |
commit | 0a0951ea841a10c5c328b5525827a1490f575cb8 (patch) | |
tree | 3d73b0c593565792ca6835cd79eb42ae5581b8b2 /EmbeddedPkg/Ebl | |
parent | 24542fb2118e3921502c70996a30a8fe7cbc2d29 (diff) | |
download | edk2-0a0951ea841a10c5c328b5525827a1490f575cb8.zip edk2-0a0951ea841a10c5c328b5525827a1490f575cb8.tar.gz edk2-0a0951ea841a10c5c328b5525827a1490f575cb8.tar.bz2 |
Update FileLib to use pointer to BlockIo->Media and not a cached copy also add some code in the library init that allows removable media devices to be probed to see if a media change has happened.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10449 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EmbeddedPkg/Ebl')
-rw-r--r-- | EmbeddedPkg/Ebl/EfiDevice.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/EmbeddedPkg/Ebl/EfiDevice.c b/EmbeddedPkg/Ebl/EfiDevice.c index f568a1f..9b08fda 100644 --- a/EmbeddedPkg/Ebl/EfiDevice.c +++ b/EmbeddedPkg/Ebl/EfiDevice.c @@ -111,24 +111,24 @@ EblPrintBlkIoInfo ( EfiClose (FsFile);
break;
}
+ EfiClose (FsFile);
}
- EfiClose (FsFile);
}
}
// Print out useful Block IO media properties
- if (File->FsBlockIoMedia.RemovableMedia) {
+ if (File->FsBlockIoMedia->RemovableMedia) {
AsciiPrint ("Removable ");
}
- if (!File->FsBlockIoMedia.MediaPresent) {
- AsciiPrint ("No Media ");
- }
- if (File->FsBlockIoMedia.LogicalPartition) {
- AsciiPrint ("Partition ");
+ if (!File->FsBlockIoMedia->MediaPresent) {
+ AsciiPrint ("No Media\n");
+ } else {
+ if (File->FsBlockIoMedia->LogicalPartition) {
+ AsciiPrint ("Partition ");
+ }
+ DeviceSize = MultU64x32 (File->FsBlockIoMedia->LastBlock + 1, File->FsBlockIoMedia->BlockSize);
+ AsciiPrint ("Size = 0x%lX\n", DeviceSize);
}
- DeviceSize = MultU64x32 (File->FsBlockIoMedia.LastBlock + 1, File->FsBlockIoMedia.BlockSize);
- AsciiPrint ("Size = 0x%lX\n", DeviceSize);
-
EfiClose (File);
}
|