u-boot/arch/sandbox
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
..
cpu sandbox: disable tracing before unmapping RAM 2023-04-28 11:47:01 -06:00
dts sandbox64: add support for NVMXIP QSPI 2023-04-27 17:01:14 -04:00
include/asm sandbox: correct posix_types.h define 2023-04-28 11:30:18 -06:00
lib Correct SPL uses of LMB 2023-02-10 07:41:39 -05:00
config.mk sandbox: Drop reference to CONFIG_ARCH_DEVICE_TREE 2023-02-07 14:33:47 -05:00
Kconfig sandbox: Rework how SDL is enabled / disabled 2022-12-05 16:11:50 -05:00
Makefile sandbox: fix build failure with musl and SDL 2022-02-09 12:26:12 -07:00