mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
aarch64: actually load kernel at 8MB
The comment above indicates that it was intended to be loaded at an offset of 8 megabytes, but it was missing a zero, so it was being loaded at an offset of 512 kilobytes instead. Fix the constant to match the comment. Fixes a warning from newer kernels: Kernel image misaligned at boot, please fix your bootloader! BUG=None TEST=Boot Linux 5.10 on trogdor64, verify no error in dmesg Change-Id: I2650d23458a13adff89a7f214734866c47d6f7cc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3364972 Reviewed-by: Dmitry Torokhov <dtor@chromium.org> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Reviewed-by: Andrew Walbran <qwandor@google.com> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
parent
891ea3e88a
commit
a06f22f2ac
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ use vm_memory::{GuestAddress, GuestMemory, GuestMemoryError};
|
|||
mod fdt;
|
||||
|
||||
// We place the kernel at offset 8MB
|
||||
const AARCH64_KERNEL_OFFSET: u64 = 0x80000;
|
||||
const AARCH64_KERNEL_OFFSET: u64 = 0x800000;
|
||||
const AARCH64_FDT_MAX_SIZE: u64 = 0x200000;
|
||||
const AARCH64_INITRD_ALIGN: u64 = 0x1000000;
|
||||
|
||||
|
|
Loading…
Reference in a new issue