[OpenBIOS] [commit] r1162 - trunk/openbios-devel/fs/hfsplus

Programmingkid programmingkidx at gmail.com
Tue Jun 25 23:16:04 CEST 2013


On Jun 25, 2013, at 1:23 PM, repository service wrote:

> Author: agraf
> Date: Tue Jun 25 19:23:09 2013
> New Revision: 1162
> URL: http://tracker.coreboot.org/trac/openbios/changeset/1162
> 
> Log:
> hfsplus: Fix disk support for disks > 4GB
> 
> The HFS+ driver was truncating the end of the disk to 32bit implicitly
> by multiplying a 32bit value with another 32bit value. Cast the first one
> to 64bit, making the result 64bit wide as well.
> 
> This fixes booting from big disks for me.
> 
> Signed-off-by: Alexander Graf <agraf at suse.de>
> 
> Modified:
>   trunk/openbios-devel/fs/hfsplus/hfsp_volume.c
> 
> Modified: trunk/openbios-devel/fs/hfsplus/hfsp_volume.c
> ==============================================================================
> --- trunk/openbios-devel/fs/hfsplus/hfsp_volume.c	Tue Jun 25 18:11:57 2013	(r1161)
> +++ trunk/openbios-devel/fs/hfsplus/hfsp_volume.c	Tue Jun 25 19:23:09 2013	(r1162)
> @@ -207,7 +207,7 @@
>                 ret = volume_readbuf(vh, p);
> 		if( !ret ) {
> 		    /* When reading the initial partition we must use 512 byte blocks */
> -		    vol_size = vh->blocksize * vh->total_blocks;
> +		    vol_size = (uint64_t)vh->blocksize * vh->total_blocks;
> 		    vol->maxblocks = vol_size / HFSP_BLOCKSZ;
> 		}
> 		


I tried booting from a Mac OS 10.4 install dvd, but it didn't work. The DVD image is only 2.83GB. Is anyone able to boot from DVD images yet?


More information about the OpenBIOS mailing list