j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: laurent Date: 2009-02-03 21:33:37 +0100 (Tue, 03 Feb 2009) New Revision: 440
Modified: openbios-devel/modules/mac-parts.c Log: mac-parts: block-size returns value found in partition map
Modified: openbios-devel/modules/mac-parts.c =================================================================== --- openbios-devel/modules/mac-parts.c 2009-02-02 17:40:29 UTC (rev 439) +++ openbios-devel/modules/mac-parts.c 2009-02-03 20:33:37 UTC (rev 440) @@ -29,6 +29,7 @@ typedef struct { ullong offs; ullong size; + uint blocksize; } macparts_info_t;
DECLARE_NODE( macparts, INSTALL_OPEN, sizeof(macparts_info_t), "+/packages/mac-parts" ); @@ -90,6 +91,7 @@ if( par.pmSig != 0x504d /* 'PM' */ || !par.pmPartBlkCnt ) RET(0);
+ di->blocksize =(uint)bs; di->offs = (llong)par.pmPyPartStart * bs; di->size = (llong)par.pmPartBlkCnt * bs;
@@ -119,9 +121,10 @@ }
static void -macparts_block_size( __attribute__((unused))macparts_info_t *di ) +macparts_block_size( macparts_info_t *di ) { - PUSH(512); + DPRINTF("macparts_block_size = %x\n", di->blocksize); + PUSH(di->blocksize); }
static void