aarch64: Fix formatting of exception registers dump
BUG=None BRANCH=none TEST=Build coreboot Change-Id: I9f55e85e720de5f55ea6bfe863b83be842859be1 Signed-off-by: Marcelo Povoa <marcelogp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/186740 Reviewed-by: David Hendricks <dhendrix@chromium.org>
This commit is contained in:
parent
9959047c82
commit
7a152c3d9d
1 changed files with 8 additions and 4 deletions
|
|
@ -46,9 +46,13 @@ static void print_regs(uint64_t *regs)
|
|||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < 31; i+=2) {
|
||||
printk(BIOS_ERR, "X%02d = 0x%016llx ", i, regs[i]);
|
||||
printk(BIOS_ERR, "X%02d = 0x%016llx\n", i + 1, regs[i + 1]);
|
||||
/* ELR contains the restart PC at target exception level */
|
||||
printk(BIOS_ERR, "ELR = 0x%016llx ", regs[0]);
|
||||
printk(BIOS_ERR, "X00 = 0x%016llx\n", regs[1]);
|
||||
|
||||
for (i = 2; i < 31; i+=2) {
|
||||
printk(BIOS_ERR, "X%02d = 0x%016llx ", i - 1, regs[i]);
|
||||
printk(BIOS_ERR, "X%02d = 0x%016llx\n", i, regs[i + 1]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -121,5 +125,5 @@ void exception_init(void)
|
|||
extern uint32_t exception_table[];
|
||||
set_vbar((uintptr_t)exception_table);
|
||||
|
||||
printk(0, "Exception handlers installed.\n");
|
||||
printk(BIOS_DEBUG, "Exception handlers installed.\n");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue