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

Unified Diff: utility/load_kernel_test_old.c

Issue 2866006: Move old vkernel code out of vboot_firmware. (Closed) Base URL: ssh://gitrw.chromium.org/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 | « utility/load_kernel_test.c ('k') | vboot_firmware/Makefile » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utility/load_kernel_test_old.c
diff --git a/utility/load_kernel2_test.c b/utility/load_kernel_test_old.c
similarity index 91%
rename from utility/load_kernel2_test.c
rename to utility/load_kernel_test_old.c
index 3d50211b4308f175b824ea9ada9be362a2fc1700..84ba4ca30a69204e131ed2031954d442fc6a7d25 100644
--- a/utility/load_kernel2_test.c
+++ b/utility/load_kernel_test_old.c
@@ -18,7 +18,11 @@
#include "host_common.h"
#include "rollback_index.h"
#include "utility.h"
-#include "vboot_kernel.h"
+
+int LoadKernelOld(LoadKernelParams* params);
+/* Attempts to load the kernel from the current device.
+ *
+ * Returns LOAD_KERNEL_SUCCESS if successful, error code on failure. */
/* ANSI Color coding sequences. */
#define COL_GREEN "\e[1;32m"
@@ -124,14 +128,12 @@ int main(int argc, char* argv[]) {
return 1;
}
- /* TODO: Option for boot mode - developer, recovery */
- /* Need to skip the address check, since we're putting it somewhere on the
- * heap instead of its actual target address in the firmware. */
- lkp.boot_flags = BOOT_FLAG_SKIP_ADDR_CHECK;
+ /* TODO: Option for boot mode */
+ lkp.boot_flags = 0;
/* Call LoadKernel() */
- rv = LoadKernel2(&lkp);
- printf("LoadKernel() returned %d\n", rv);
+ rv = LoadKernelOld(&lkp);
+ printf("LoadKernelOld() returned %d\n", rv);
if (LOAD_KERNEL_SUCCESS == rv) {
printf("Partition number: %" PRIu64 "\n", lkp.partition_number);
« no previous file with comments | « utility/load_kernel_test.c ('k') | vboot_firmware/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698