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

Unified Diff: cgpt/cmd_create.c

Issue 2844006: This fixes the EFI BIOS boot problems introduced with cgpt. (Closed) Base URL: ssh://git@chromiumos-git//vboot_reference.git
Patch Set: Created 10 years, 6 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 | cgpt/cmd_show.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cgpt/cmd_create.c
diff --git a/cgpt/cmd_create.c b/cgpt/cmd_create.c
index 4e6eb65361c7aca6e2f3b92fc343a91ef00fbb58..1680370949b5ce40f0bcbdb8313f79731cdf738a 100644
--- a/cgpt/cmd_create.c
+++ b/cgpt/cmd_create.c
@@ -88,6 +88,7 @@ int cmd_create(int argc, char *argv[]) {
h->revision = GPT_HEADER_REVISION;
h->size = sizeof(GptHeader);
h->my_lba = 1;
+ h->alternate_lba = drive.gpt.drive_sectors - 1;
h->first_usable_lba = 1 + 1 + GPT_ENTRIES_SECTORS;
h->last_usable_lba = drive.gpt.drive_sectors - 1 - GPT_ENTRIES_SECTORS - 1;
uuid_generate((uint8_t *)&h->disk_uuid);
« no previous file with comments | « no previous file | cgpt/cmd_show.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698