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 /firmware/lib/cgptlib/include | |
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 'firmware/lib/cgptlib/include')
-rw-r--r-- | firmware/lib/cgptlib/include/cgptlib_internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/lib/cgptlib/include/cgptlib_internal.h b/firmware/lib/cgptlib/include/cgptlib_internal.h index 95e5b4e7..66ceef13 100644 --- a/firmware/lib/cgptlib/include/cgptlib_internal.h +++ b/firmware/lib/cgptlib/include/cgptlib_internal.h @@ -112,4 +112,7 @@ int IsUnusedEntry(const GptEntry* e); /* Returns 1 if the entry is a Chrome OS kernel partition, else 0. */ int IsKernelEntry(const GptEntry* e); +/* Copies the current kernel partition's UniquePartitionGuid to the dest */ +void GetCurrentKernelUniqueGuid(GptData *gpt, void *dest); + #endif /* VBOOT_REFERENCE_CGPTLIB_INTERNAL_H_ */ |