mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
set blocksize when partition number is 0
git-svn-id: svn://coreboot.org/openbios/openbios-devel@445 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -74,6 +74,7 @@ macparts_open( macparts_info_t *di )
|
||||
bs = 512;
|
||||
}
|
||||
if (parnum == 0) {
|
||||
di->blocksize =(uint)bs;
|
||||
di->offs = (llong)0;
|
||||
di->size = (llong)dmap.sbBlkCount * bs;
|
||||
PUSH( -1 );
|
||||
|
||||
Reference in New Issue
Block a user