Andrew Waterman (aswaterman@gmail.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/13736
-gerrit
commit dd6bed0fc56178143b57aa48bd0eaac6b9d355f1 Author: Andrew Waterman waterman@cs.berkeley.edu Date: Thu Feb 18 16:11:52 2016 -0800
RISC-V: Add more debug info to debug printks
Change-Id: I49292e69a5636c675bb8ed7cfe4462ca8189487e Signed-off-by: Andrew Waterman waterman@cs.berkeley.edu --- src/arch/riscv/trap_handler.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/arch/riscv/trap_handler.c b/src/arch/riscv/trap_handler.c index 53bcbf9..ff3be56 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]);