Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: firmware/lib/vboot_kernel.c

Issue 3056014: Make LoadKernel() pass back the kernel partition's UniqueGuid. (Closed) Base URL: ssh://git@chromiumos-git//vboot_reference.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « firmware/lib/cgptlib/include/cgptlib_internal.h ('k') | firmware/version.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: firmware/lib/vboot_kernel.c
diff --git a/firmware/lib/vboot_kernel.c b/firmware/lib/vboot_kernel.c
index c04538039bb8d8a93671e23b57e0be948db193d5..7df40ac8d81676b9e1942a32a663b1bfff3c661e 100644
--- a/firmware/lib/vboot_kernel.c
+++ b/firmware/lib/vboot_kernel.c
@@ -14,7 +14,7 @@
#include "rollback_index.h"
#include "utility.h"
#include "vboot_common.h"
-
+#include "cgptlib_internal.h"
gauravsh 2010/07/23 01:50:57 nit: alpha order
#define KBUF_SIZE 65536 /* Bytes to read at start of kernel partition */
@@ -350,6 +350,7 @@ int LoadKernel(LoadKernelParams* params) {
* Adjust here, until cgptlib is fixed. */
good_partition = gpt.current_kernel + 1;
params->partition_number = gpt.current_kernel + 1;
+ GetCurrentKernelUniqueGuid(&gpt, &params->partition_guid);
params->bootloader_address = preamble->bootloader_address;
params->bootloader_size = preamble->bootloader_size;
/* If we're in developer or recovery mode, there's no rollback
« no previous file with comments | « firmware/lib/cgptlib/include/cgptlib_internal.h ('k') | firmware/version.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698