mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: panic with a message when relocation type is unknown
@ 2019-05-31  9:02 Ahmad Fatoum
  2019-05-31 14:43 ` Sam Ravnborg
  2019-05-31 18:56 ` Andrey Smirnov
  0 siblings, 2 replies; 7+ messages in thread
From: Ahmad Fatoum @ 2019-05-31  9:02 UTC (permalink / raw)
  To: barebox

Currently such failures result in a

	>00000000 00000000

	### ERROR ### Please RESET the board ###

With this patch this now becomes

	>00000000 00000000
	Unknown relocation type
	### ERROR ### Please RESET the board ###

which improves user experience a little bit.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 arch/arm/cpu/common.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/cpu/common.c b/arch/arm/cpu/common.c
index 821cafbf26c2..3668c5977ca9 100644
--- a/arch/arm/cpu/common.c
+++ b/arch/arm/cpu/common.c
@@ -78,7 +78,7 @@ void relocate_to_current_adr(void)
 			putc_ll(' ');
 			puthex_ll(rel->r_addend);
 			putc_ll('\n');
-			panic("");
+			panic("Unknown relocation type");
 		}
 
 		dstart += sizeof(*rel);
@@ -108,7 +108,7 @@ void relocate_to_current_adr(void)
 			putc_ll(' ');
 			puthex_ll(rel->r_offset);
 			putc_ll('\n');
-			panic("");
+			panic("Unknown relocation type");
 		}
 
 		dstart += sizeof(*rel);
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-06-04  6:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-31  9:02 [PATCH] ARM: panic with a message when relocation type is unknown Ahmad Fatoum
2019-05-31 14:43 ` Sam Ravnborg
2019-06-03  5:21   ` Ahmad Fatoum
2019-06-03  5:26     ` Ahmad Fatoum
2019-05-31 18:56 ` Andrey Smirnov
2019-06-03 13:03   ` Ahmad Fatoum
2019-06-04  6:10     ` Andrey Smirnov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox