diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-02-18 16:11:52 -0800 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2016-02-19 05:42:52 +0100 |
commit | 38cd3756b8b04786bea75fa10ca59ff3d46ac14e (patch) | |
tree | 76cbe47ea580f859ca5b59b7be9b2625c5e899a1 /src | |
parent | f16d904192dc9173c526ae20eb26c910caf21fa2 (diff) |
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)
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/riscv/trap_handler.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/arch/riscv/trap_handler.c b/src/arch/riscv/trap_handler.c index 53bcbf98c1..ff3be56f78 100644 --- a/src/arch/riscv/trap_handler.c +++ b/src/arch/riscv/trap_handler.c @@ -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]); |