u-boot/arch/sandbox/include/asm
Heinrich Schuchardt 329dccc067 sandbox: implement reset
Up to now the sandbox would shutdown upon a cold reset request. Instead it
should be reset.

In our coding we use static variables like LIST_HEAD(efi_obj_list). A reset
can occur at any time, e.g. via an UEFI binary calling the reset service.
The only safe way to return to an initial state is to relaunch the U-Boot
binary.

The reset implementation uses execv() to relaunch U-Boot.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
2020-11-05 09:11:30 -07:00
..
acpi_table.h acpi: Add a simple sandbox test 2020-04-16 14:36:28 +08:00
axi.h axi: Add AXI sandbox driver and simple emulator 2018-08-11 08:09:39 +02:00
bitops.h sandbox: Use the generic bitops headers 2015-11-05 10:52:14 -05:00
byteorder.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cache.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
clk.h dm: Add support for simple-pm-bus 2020-07-01 15:01:21 +08:00
config.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cpu.h timer: Add a test for timer_timebase_fallback 2020-09-30 08:54:45 +08:00
dma-mapping.h dma-mapping: add <asm/dma-mapping.h> for all architectures 2020-02-20 15:09:54 +08:00
eth-raw-os.h sandbox: eth-raw: Add a SIMPLE_BUS to enumerate host interfaces 2018-07-26 14:08:19 -05:00
eth.h common: Drop net.h from common header 2020-05-18 17:33:31 -04:00
getopt.h sandbox: Rename sb_cmdline_option to sandbox_cmdline_option 2013-12-09 12:22:02 -07:00
global_data.h acpi: Add an acpi command 2020-04-30 17:16:12 +08:00
gpio.h test: dm: update test for pins configuration in gpio 2020-04-16 23:06:54 -04:00
handoff.h spl: Add support for passing handoff info to U-Boot proper 2018-11-26 08:25:37 -05:00
io.h sandbox: Drop 'const' from sandbox_write() 2019-10-27 10:56:41 -06:00
linkage.h efi: Use asmlinkage for EFIAPI 2016-10-19 09:01:53 +02:00
malloc.h sandbox: Add a new header for the system malloc() 2020-02-05 19:33:46 -07:00
mbox.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
posix_types.h sandbox: Add architecture header files 2011-10-17 22:45:50 +02:00
power-domain.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
processor.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ptrace.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
reset.h test: reset: Add tests for the managed API 2020-09-30 11:55:22 -04:00
rtc.h test: dm: rtc: add test of dm_rtc_read, dm_rtc_write 2020-07-09 06:02:45 +02:00
scmi_test.h firmware: smci: sandbox test for SCMI reset controllers 2020-09-30 11:55:24 -04:00
sdl.h sandbox: sdl: Add an option to double the screen size 2020-02-05 19:33:46 -07:00
sections.h sandbox: Rename sb_cmdline_option to sandbox_cmdline_option 2013-12-09 12:22:02 -07:00
setjmp.h sandbox: Fix setjmp/longjmp 2018-09-23 21:55:30 +02:00
spi.h doc: arch: sandbox: Replace all the instances of README.sandbox 2019-07-29 09:32:09 -04:00
spl.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
state.h dm: test: Drop of-platdata pytest 2020-10-29 14:42:18 -06:00
string.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
system.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
test.h sandbox conversion to SDL2 2020-02-11 10:58:41 -05:00
types.h sandbox: Use correct phys_{addr, size}_t for PHYS_64BIT=y 2019-04-11 20:10:05 -06:00
u-boot-sandbox.h sandbox: implement reset 2020-11-05 09:11:30 -07:00
u-boot.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
unaligned.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00