u-boot/arch/sandbox/cpu
Pavel Skripkin 763f0a1f0d sandbox: disable tracing before unmapping RAM
Currently doing 'reset' command in sandbox with tracing enabled causes
SIGSEV

```
Hit any key to stop autoboot:  0
=>
=>
=> reset
resetting ...
Segmentation fault (core dumped)

```

Tracing callback uses RAM buffer for storing tracing reports, but
state_uninit() function unmaps whole RAM, which causes SIGSEV on umapped
memory inside tracing subsystem.

Fix it by disabling tracing before unmapping memory

Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Add missing check for CONFIG_TRACE:
Signed-off-by: Simon Glass <sjg@chromium.org>
2023-04-28 11:47:01 -06:00
..
cache.c sandbox: implement invalidate_icache_all() 2020-12-22 20:39:25 -07:00
cpu.c sandbox: mark sandbox_exit() as no return. 2023-04-28 11:30:17 -06:00
eth-raw-os.c sandbox: eth-raw: fix building with musl library 2022-01-25 14:02:38 -07:00
Makefile sandbox: fix build failure with musl and SDL 2022-02-09 12:26:12 -07:00
os.c sandbox: fix return type of os_filesize() 2023-04-28 11:30:17 -06:00
sdl.c sandbox: fix sound driver 2022-12-05 17:43:23 +01:00
spl.c test: Add a way to detect a test that breaks another 2022-11-07 16:24:30 -07:00
start.c global: Migrate CONFIG_MALLOC_F_ADDR to CFG 2022-12-23 10:14:51 -05:00
state.c sandbox: disable tracing before unmapping RAM 2023-04-28 11:47:01 -06:00
u-boot-spl.lds linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
u-boot.lds linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00