commit 793ffa27b0b352e4d081f6316c9f3eeec7a191db
parent b0c306ead79625d2aef659e46aae1935da8b54d4
Author: Roberto Vargas <roberto.vargas@arm.com>
Date: Thu, 1 Nov 2018 11:18:39 +0000
Fix trap
We only have to relocate strings from static arrays, not
every string in the code. This was a bug taht could produce
undefined results.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/rmc.c b/src/rmc.c
@@ -92,10 +92,10 @@ trap(struct trapframe *fp)
if (ec != RMC) {
msg = NULL;
if (ec < NR_EC_STR)
- msg = ecstr[ec];
+ msg = reloc(ecstr[ec]);
if (!msg)
msg = "unknown reason";
- panicfmt(reloc(msg), fp);
+ panicfmt(msg, fp);
halt();
}