commit | 16b9c64caf900a9ce4623090e8263a7da2746998 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Wed Aug 07 16:47:26 2024 -0600 |
committer | Tom Rini <trini@konsulko.com> | Fri Aug 09 16:03:19 2024 -0600 |
tree | fc7c1ba253f4eea0a6317ba6d8eed4a472ba060a | |
parent | 5b33660c54e56aaee4485a9d283d4d33fb77001c [diff] |
sandbox: Set up global_data earlier It is possible for U-Boot functions such as printf() to be called within state_init(). This can end up checking gd->flags (e.g. in putc()) before global_data is set up. Move the setup earlier to avoid this. This fixes the suppression of some debug output in memory allocation (when enabled). Signed-off-by: Simon Glass <sjg@chromium.org>