From 962898036652cbf9e21f09d0e089c6207240b3a2 Mon Sep 17 00:00:00 2001 From: Raymond Mao Date: Thu, 12 Oct 2023 12:34:22 -0700 Subject: [PATCH] [review] core: add support for transfer list Address review comments. Signed-off-by: Raymond Mao --- core/arch/arm/kernel/boot.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/arch/arm/kernel/boot.c b/core/arch/arm/kernel/boot.c index e9c83eb7de2..db150f8d982 100644 --- a/core/arch/arm/kernel/boot.c +++ b/core/arch/arm/kernel/boot.c @@ -1294,7 +1294,9 @@ void __weak boot_save_transfer_list(unsigned long transfer_list, struct transfer_list_header *tl = (void *)transfer_list; struct transfer_list_entry *te = NULL; - if (!IS_ALIGNED(transfer_list, TL_ALIGNMENT_FROM_ORDER(tl->alignment))) + if (!IS_ALIGNED_WITH_TYPE(transfer_list, + struct transfer_list_header) || + !IS_ALIGNED(transfer_list, TL_ALIGNMENT_FROM_ORDER(tl->alignment))) panic("Transfer list base address is not aligned"); if (transfer_list_check_header(tl) == TL_OPS_NON)