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

Unified Diff: src/platform/vboot_reference/cgptlib/cgpt.c

Issue 1761004: A simple test infrastructure -- idea stolen from Gaurav. (Closed)
Patch Set: Created 10 years, 8 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 | « src/platform/vboot_reference/cgptlib/cgpt.h ('k') | src/platform/vboot_reference/cgptlib/tests/cgpt_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/vboot_reference/cgptlib/cgpt.c
diff --git a/src/platform/vboot_reference/cgptlib/cgpt.c b/src/platform/vboot_reference/cgptlib/cgpt.c
index 7f18a1cf8d45b6bc2a925592acdf1a5f7a04e69d..4504a618a548a5c109bd7aae2d7b7d5431959565 100644
--- a/src/platform/vboot_reference/cgptlib/cgpt.c
+++ b/src/platform/vboot_reference/cgptlib/cgpt.c
@@ -9,19 +9,19 @@
static int start[] = { 34, 10034 };
int GPTInit(GPTData_t *gpt) {
- gpt->current_kernel = 1;
- return 0;
+ gpt->current_kernel = 1;
+ return 0;
}
int GPTNextKernelEntry(GPTData_t *gpt, uint64_t *start_sector, uint64_t *size) {
- gpt->current_kernel ^= 1;
- if (start_sector) *start_sector = start[gpt->current_kernel];
- if (size) *size = 10000;
- return 0;
+ gpt->current_kernel ^= 1;
+ if (start_sector) *start_sector = start[gpt->current_kernel];
+ if (size) *size = 10000;
+ return 0;
}
int GPTUpdateKernelEntry(GPTData_t *gpt, uint32_t update_type) {
- gpt->modified |= (GPT_MODIFIED_HEADER1 | GPT_MODIFIED_ENTRIES1) <<
- gpt->current_kernel;
- return 0;
+ gpt->modified |= (GPT_MODIFIED_HEADER1 | GPT_MODIFIED_ENTRIES1) <<
+ gpt->current_kernel;
+ return 0;
}
« no previous file with comments | « src/platform/vboot_reference/cgptlib/cgpt.h ('k') | src/platform/vboot_reference/cgptlib/tests/cgpt_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698