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:
Andrew Waterman 2016-02-18 16:11:52 -08:00 committed by Ronald G. Minnich
parent f16d904192
commit 38cd3756b8
1 changed files with 5 additions and 2 deletions

View File

@ -65,7 +65,9 @@ void handle_supervisor_call(trapframe *tf) {
returnValue = mcall_shutdown();
break;
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);
break;
case QUERY_MEMORY:
@ -147,7 +149,8 @@ void trap_handler(trapframe *tf) {
printk(BIOS_DEBUG, "Trap: Environment call from M-mode\n");
break;
default:
printk(BIOS_DEBUG, "Trap: Unknown cause\n");
printk(BIOS_DEBUG, "Trap: Unknown cause %p\n",
(void *)cause);
break;
}
printk(BIOS_DEBUG, "Stored ra: %p\n", (void*) tf->gpr[1]);