mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-25 18:55:24 +00:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user