diff options
author | Bill Richardson <wfrichar@chromium.org> | 2010-07-23 17:22:25 -0700 |
---|---|---|
committer | Bill Richardson <wfrichar@chromium.org> | 2010-07-23 17:22:25 -0700 |
commit | 5deb67f22507481cf5cb8f991976a9969fa90a22 (patch) | |
tree | 840e532476dac2596488f4e3221bf6f97924e8e0 /utility/load_kernel_test.c | |
parent | e272940ec513ec00c295aecdfb6e799c07261d90 (diff) | |
download | vboot-5deb67f22507481cf5cb8f991976a9969fa90a22.tar.gz |
Make LoadKernel() pass back the kernel partition's UniqueGuid.
LoadKernel already returns the partition number for the selected kernel.
This change makes it also return the GPT Entry's UniqueGuid, which will
eventually be passed to the kernel itself, so the kernel can determine which
of several possible devices it has booted from. It doesn't know for certain
because the BIOS and the kernel may enumerate the devices in a different
order.
BUG=chromium-os:4984
Review URL: http://codereview.chromium.org/3056014
Diffstat (limited to 'utility/load_kernel_test.c')
-rw-r--r-- | utility/load_kernel_test.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/utility/load_kernel_test.c b/utility/load_kernel_test.c index c391c61c..4ac9330b 100644 --- a/utility/load_kernel_test.c +++ b/utility/load_kernel_test.c @@ -135,6 +135,25 @@ int main(int argc, char* argv[]) { printf("Partition number: %" PRIu64 "\n", lkp.partition_number); printf("Bootloader address: %" PRIu64 "\n", lkp.bootloader_address); printf("Bootloader size: %" PRIu64 "\n", lkp.bootloader_size); + printf("Partition guid: " + "%02x%02x%02x%02x-%02x%02x-%02x%02x" + "-%02x%02x-%02x%02x%02x%02x%02x%02x\n", + lkp.partition_guid[3], + lkp.partition_guid[2], + lkp.partition_guid[1], + lkp.partition_guid[0], + lkp.partition_guid[5], + lkp.partition_guid[4], + lkp.partition_guid[7], + lkp.partition_guid[6], + lkp.partition_guid[8], + lkp.partition_guid[9], + lkp.partition_guid[10], + lkp.partition_guid[11], + lkp.partition_guid[12], + lkp.partition_guid[13], + lkp.partition_guid[14], + lkp.partition_guid[15]); } fclose(image_file); |