]> git.dujemihanovic.xyz Git - u-boot.git/commit
test: Allow saving and restoring the bloblist
authorSimon Glass <sjg@chromium.org>
Mon, 28 Oct 2024 12:47:53 +0000 (13:47 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 4 Nov 2024 03:27:12 +0000 (21:27 -0600)
commit3f1d79932a1b3804fe108961ad95c44adbc6cb72
treeb43bf2df18e7c76cd86fb86afb86951caeaeda2a
parent12d583b38fa570da1fc5aba6d1f5aaf2ba3d8505
test: Allow saving and restoring the bloblist

Tests which create a new bloblist overwrite the existing one in sandbox.
Provide a flag for tests to declare this behaviour. Save and restore the
bloblist pointer so that other tests remain unaffected.

Note that when sandbox is running normally, the bloblist has been
relocated to high in memory. The existing bloblist tests create a new
bloblist low in memory, so they do not conflict.

Correct a build error on coreboot by using accessors for gd->bloblist:
Signed-off-by: Simon Glass <sjg@chromium.org>
include/asm-generic/global_data.h
include/test/test.h
test/test-main.c