commit | 92f961e1a62a3b5742492f8de2048f40b05447e2 | [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 | c01853c5a2661999b1bc5ae12e93d549713e3178 [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>