diff options
| author | Simon Glass <[email protected]> | 2024-08-21 10:19:13 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-08-26 14:05:38 -0600 |
| commit | 2e9313179a846b581c0fc3f6a49e19f3d343efa8 (patch) | |
| tree | 9385f80b73eb00be50c23cab00c9d4e0e5473ce1 /cmd | |
| parent | e821897622a13d41c80993510be56e7011d1c43a (diff) | |
global_data: Drop spl_handoff
Provide a function to locate this information, rather than doing it
automatically on startup, to save space in global_data.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/sb.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -14,8 +14,10 @@ static int do_sb_handoff(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { #if CONFIG_IS_ENABLED(HANDOFF) - if (gd->spl_handoff) - printf("SPL handoff magic %lx\n", gd->spl_handoff->arch.magic); + struct spl_handoff *handoff = handoff_get(); + + if (handoff) + printf("SPL handoff magic %lx\n", handoff->arch.magic); else printf("SPL handoff info not received\n"); |
