sandbox: Boot in U-Boot through the standard call
authorSimon Glass <sjg@chromium.org>
Fri, 16 Nov 2018 01:44:08 +0000 (18:44 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 26 Nov 2018 13:25:37 +0000 (08:25 -0500)
commit27028f186d17a25507eb7d5c9b852d8555432679
tree3782561607ad92cb008bfb76f960802c994cc394
parent65f3b1f99274ef876499c082aa66a83f46372d16
sandbox: Boot in U-Boot through the standard call

Most architectures use jump_to_image_no_args() to jump from SPL to U-Boot.
At present sandbox is special in that it jumps in its
spl_board_load_image() call. This is not strictly correct, and means that
sandbox misses out some parts of board_init_r(), just as calling
bloblist_finish(), for example.

Change spl_board_load_image() to just identify the filename to boot, and
implement jump_to_image_no_args() to actually jump to it.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/os.c
arch/sandbox/cpu/spl.c