RISC-V: Add more debug info to debug printks
Change-Id: I49292e69a5636c675bb8ed7cfe4462ca8189487e Signed-off-by: Andrew Waterman <waterman@cs.berkeley.edu> Reviewed-on: https://review.coreboot.org/13736 Reviewed-by: Ronald G. Minnich <rminnich@gmail.com> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
f16d904192
commit
38cd3756b8
|
@ -65,7 +65,9 @@ void handle_supervisor_call(trapframe *tf) {
|
||||||
returnValue = mcall_shutdown();
|
returnValue = mcall_shutdown();
|
||||||
break;
|
break;
|
||||||
case SET_TIMER:
|
case SET_TIMER:
|
||||||
printk(BIOS_DEBUG, "Setting timer...\n");
|
printk(BIOS_DEBUG,
|
||||||
|
"Setting timer to %p (current time is %p)...\n",
|
||||||
|
(void *)arg0, (void *)rdtime());
|
||||||
returnValue = mcall_set_timer(arg0);
|
returnValue = mcall_set_timer(arg0);
|
||||||
break;
|
break;
|
||||||
case QUERY_MEMORY:
|
case QUERY_MEMORY:
|
||||||
|
@ -147,7 +149,8 @@ void trap_handler(trapframe *tf) {
|
||||||
printk(BIOS_DEBUG, "Trap: Environment call from M-mode\n");
|
printk(BIOS_DEBUG, "Trap: Environment call from M-mode\n");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
printk(BIOS_DEBUG, "Trap: Unknown cause\n");
|
printk(BIOS_DEBUG, "Trap: Unknown cause %p\n",
|
||||||
|
(void *)cause);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
printk(BIOS_DEBUG, "Stored ra: %p\n", (void*) tf->gpr[1]);
|
printk(BIOS_DEBUG, "Stored ra: %p\n", (void*) tf->gpr[1]);
|
||||||
|
|
Loading…
Reference in New Issue