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

Unified Diff: src/platform/vboot_reference/cgptlib/cgptlib.h

Issue 2161007: Expose GptData.current_kernel as an output of GptNextKernelEntry() (Closed) Base URL: ssh://gitrw.chromium.org/chromiumos
Patch Set: Created 10 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/vboot_reference/cgptlib/cgptlib.h
diff --git a/src/platform/vboot_reference/cgptlib/cgptlib.h b/src/platform/vboot_reference/cgptlib/cgptlib.h
index f61c07d7b4fd312bb3e16f4699822f67d5bda7a1..af0774641bf93d3cbf8a00297add3109762b913d 100644
--- a/src/platform/vboot_reference/cgptlib/cgptlib.h
+++ b/src/platform/vboot_reference/cgptlib/cgptlib.h
@@ -86,8 +86,6 @@ typedef struct {
* 0x02 = header2
* 0x04 = table1
* 0x08 = table2 */
-
- /* Internal state */
int current_kernel; /* the current chromeos kernel index in partition table.
* -1 means not found on drive. */
} GptData;
@@ -119,7 +117,8 @@ int GptNextKernelEntry(GptData *gpt, uint64_t *start_sector, uint64_t *size);
/* Provides the location of the next kernel partition, in order of decreasing
* priority. On return the start_sector parameter contains the LBA sector
* for the start of the kernel partition, and the size parameter contains the
- * size of the kernel partition in LBA sectors.
+ * size of the kernel partition in LBA sectors. gpt.current_kernel contains
+ * the partition index of the current chromeos kernel partition.
*
* Returns GPT_SUCCESS if successful, else
* GPT_ERROR_NO_VALID_KERNEL, no avaliable kernel, enters recovery mode */
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698