summaryrefslogtreecommitdiff
path: root/utility/include
diff options
context:
space:
mode:
authorChe-Liang Chiou <clchiou@chromium.org>2012-04-05 17:36:10 +0800
committerGerrit <chrome-bot@google.com>2012-04-06 04:08:54 -0700
commit036922ed8a2a7f2b7de4d5d8e0fc8aff072dce3d (patch)
treed1f237d057d78a6190074cec8d98659e12ababdd /utility/include
parentf9e82e9695d3f208b549cc0208baf24985bbb488 (diff)
downloadvboot-036922ed8a2a7f2b7de4d5d8e0fc8aff072dce3d.tar.gz
Read kernel body load address from preamble by default
The default behavior of dump_kernel_config is changed from using CROS_32BIT_ENTRY_ADDR to reading from kernel preamble. The main motivation for this change is in preparation for ARM boards of which kernel body load address cannot be CROS_32BIT_ENTRY_ADDR. Since we do not want that all ARM calling sides of dump_kernel_config have to carry the kloadaddr argument, it would be better to let dump_kernel_config read this address from the kernel preamble by default. BUG=chromium-os:28077 TEST=Run dump_kernel_config w/ and w/o this change Change-Id: I5eddcc35e5970dfce02cc66208438c57351f1c81 Reviewed-on: https://gerrit.chromium.org/gerrit/19660 Tested-by: Che-Liang Chiou <clchiou@chromium.org> Reviewed-by: Don Garrett <dgarrett@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org> Commit-Ready: Che-Liang Chiou <clchiou@chromium.org>
Diffstat (limited to 'utility/include')
-rw-r--r--utility/include/kernel_blob.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/utility/include/kernel_blob.h b/utility/include/kernel_blob.h
index e8f813eb..5784542e 100644
--- a/utility/include/kernel_blob.h
+++ b/utility/include/kernel_blob.h
@@ -17,6 +17,9 @@
// Alignment of various chunks within the kernel blob
#define CROS_ALIGN 4096
+// Sentinel RAM address indicating that no entry address is specified
+#define CROS_NO_ENTRY_ADDR (~0)
+
// RAM address where the 32-bit kernel expects to be started
#define CROS_32BIT_ENTRY_ADDR 0x100000