mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Add block-size to partition packages.
Yaboot uses "block-size" with disk-label packages. This patch add block-size to all partitions packages. Signed-off-by: Laurent Vivier <Laurent@lvivier.info> git-svn-id: svn://coreboot.org/openbios/openbios-devel@291 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Blue Swirl
parent
4fdc0e0fff
commit
5766c8fb3a
@@ -172,6 +172,12 @@ sunparts_get_info( sunparts_info_t *di )
|
||||
PUSH( di->size_hi );
|
||||
}
|
||||
|
||||
static void
|
||||
sunparts_block_size( __attribute__((unused))sunparts_info_t *di )
|
||||
{
|
||||
PUSH(512);
|
||||
}
|
||||
|
||||
static void
|
||||
sunparts_initialize( __attribute__((unused))sunparts_info_t *di )
|
||||
{
|
||||
@@ -182,6 +188,7 @@ NODE_METHODS( sunparts ) = {
|
||||
{ "probe", sunparts_probe },
|
||||
{ "open", sunparts_open },
|
||||
{ "get-info", sunparts_get_info },
|
||||
{ "block-size", sunparts_block_size },
|
||||
{ NULL, sunparts_initialize },
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user