load_kernel_test tests the recovery image now (submit for Bill)

See original CL here: http://codereview.chromium.org/2803033/show

Review URL: http://codereview.chromium.org/2830038
This commit is contained in:
Louis Yung-Chieh Lo
2010-07-05 13:06:19 +08:00
parent ceef83f9e3
commit 783e64e70e

View File

@@ -121,7 +121,7 @@ int main(int argc, char* argv[]) {
/* TODO: Option for boot mode - developer, recovery */ /* TODO: Option for boot mode - developer, recovery */
/* Need to skip the address check, since we're putting it somewhere on the /* Need to skip the address check, since we're putting it somewhere on the
* heap instead of its actual target address in the firmware. */ * heap instead of its actual target address in the firmware. */
lkp.boot_flags = BOOT_FLAG_SKIP_ADDR_CHECK; lkp.boot_flags = BOOT_FLAG_SKIP_ADDR_CHECK | BOOT_FLAG_RECOVERY;
/* Call LoadKernel() */ /* Call LoadKernel() */
rv = LoadKernel(&lkp); rv = LoadKernel(&lkp);
@@ -135,5 +135,5 @@ int main(int argc, char* argv[]) {
fclose(image_file); fclose(image_file);
Free(lkp.kernel_buffer); Free(lkp.kernel_buffer);
return 0; return rv != LOAD_KERNEL_SUCCESS;
} }