aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-03-22 14:01:01 -0400
committerTom Rini <trini@konsulko.com>2023-03-22 14:01:01 -0400
commitc84a00a647057d83ecfb081ca03c4865e4c1c1be (patch)
treec06d3e7309022a299855ac566ba51f3fb38b0007 /lib
parent5e207b8517427226b96c5e808ae119fb1d75d39a (diff)
parentf8461352b84ea66ad03d3231a5056643ab73515d (diff)
Merge branch '2023-03-22-assorted-fixes'
- Assorted TI platform fixes, correct location of NXP boot format git repository, don't try and mount partitions that are too small to be ext4 as ext4, handle .bin files in .gitattributes, flush out panic messages for sure, and correct console location on Arm total_compute.
Diffstat (limited to 'lib')
-rw-r--r--lib/panic.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/panic.c b/lib/panic.c
index 58382ac4f4..66ae17f3df 100644
--- a/lib/panic.c
+++ b/lib/panic.c
@@ -15,6 +15,7 @@
#include <command.h>
#endif
#include <linux/delay.h>
+#include <stdio.h>
static void panic_finish(void) __attribute__ ((noreturn));
@@ -24,7 +25,8 @@ static void panic_finish(void)
#if defined(CONFIG_PANIC_HANG)
hang();
#else
- udelay(100000); /* allow messages to go out */
+ flush(); /* flush the panic message before reset */
+
do_reset(NULL, 0, 0, NULL);
#endif
while (1)