sparc64: Add blocklist GPT support for SPARC
authorEric Snowberg <eric.snowberg@oracle.com>
Fri, 12 May 2017 01:25:24 +0000 (18:25 -0700)
committerDaniel Kiper <daniel.kiper@oracle.com>
Wed, 14 Feb 2018 16:42:56 +0000 (17:42 +0100)
commit69e0a67bfb419a8d6c905fb23330a8afc2435de6
tree428958ad79c607b4728ed24cd45ea39a95b94f3f
parent566a03a623ca5ec07c815683625aecc410dc3095
sparc64: Add blocklist GPT support for SPARC

Add block-list GPT support for SPARC.  The OBP "load" and "boot" methods
are partition aware and neither command can see the partition table. Also
neither command can address the entire physical disk. When the install
happens, grub generates the block-list entries based on the beginning of the
physical disk, not the beginning of the partition. This patch fixes the
block-list entries so they match what OBP expects during boot for a GPT disk.

T5 and above now supports GPT as well as VTOC.

This patch has been tested on T5-2 and newer SPARC systems.

Signed-off-by: Eric Snowberg <eric.snowberg@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
util/setup.c