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)