diff options
author | Simon Glass <sjg@chromium.org> | 2023-07-12 09:04:36 -0600 |
---|---|---|
committer | Bin Meng <bmeng@tinylab.org> | 2023-07-16 23:13:17 +0800 |
commit | 43b6fa9c1464e0918004dc03be03acd3c40bcc25 (patch) | |
tree | 6b61cdb82de189a3db9a6a31be606334fd274d2e /cmd | |
parent | d42243fe21c8847cd5c6db4e11b2aee660448451 (diff) | |
download | u-boot-43b6fa9c1464e0918004dc03be03acd3c40bcc25.tar.gz u-boot-43b6fa9c1464e0918004dc03be03acd3c40bcc25.tar.bz2 u-boot-43b6fa9c1464e0918004dc03be03acd3c40bcc25.zip |
bootstd: Allow storing x86 setup information
On x86 boards Linux uses a block of binary data to provide information
about the command line, memory map, etc. Provide a way to store this in
the bootflow so it can be passed on to the OS.
No attempt is made to generalise the code, since other archs don't need
this information. The field is present always, though, to avoid needing
accessors or #ifdefs when building code on other archs.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/bootflow.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/bootflow.c b/cmd/bootflow.c index f33db7be5f..bf30087c7c 100644 --- a/cmd/bootflow.c +++ b/cmd/bootflow.c @@ -336,6 +336,8 @@ static int do_bootflow_info(struct cmd_tbl *cmdtp, int flag, int argc, else puts("(none)"); putc('\n'); + if (bflow->x86_setup) + printf("X86 setup: %p\n", bflow->x86_setup); printf("Logo: %s\n", bflow->logo ? simple_xtoa((ulong)map_to_sysmem(bflow->logo)) : "(none)"); if (bflow->logo) { |