Skip to content

Commit

Permalink
[review] core: add support for transfer list
Browse files Browse the repository at this point in the history
Address review comments.

Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
  • Loading branch information
raymo200915 committed Oct 12, 2023
1 parent e7bbddd commit 9628980
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/arch/arm/kernel/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9628980

Please sign in to comment.