From 2d7327fb2e66dce57a88513ee9f45dd934892ce2 Mon Sep 17 00:00:00 2001 From: Ivan Velickovic Date: Tue, 3 Oct 2023 20:20:34 +1100 Subject: [PATCH] libvmm: make a small note about Linux images setup API --- src/arch/aarch64/linux.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/arch/aarch64/linux.h b/src/arch/aarch64/linux.h index d8b531027..0282465c4 100644 --- a/src/arch/aarch64/linux.h +++ b/src/arch/aarch64/linux.h @@ -31,6 +31,9 @@ struct linux_image_header { uint32_t res5; // reserved (used for PE COFF offset) }; +// Note that this function assumes that the `kernel` parameter is aligned +// to at least the alignment of `struct linux_image_header`. The `dtb_src` +// paramter must be aligned to at least the alignment of `struct dtb_header`. uintptr_t linux_setup_images(uintptr_t ram_start, uintptr_t kernel, size_t kernel_size,