From 38cd3756b8b04786bea75fa10ca59ff3d46ac14e Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Thu, 18 Feb 2016 16:11:52 -0800 Subject: RISC-V: Add more debug info to debug printks Change-Id: I49292e69a5636c675bb8ed7cfe4462ca8189487e Signed-off-by: Andrew Waterman Reviewed-on: https://review.coreboot.org/13736 Reviewed-by: Ronald G. Minnich Tested-by: build bot (Jenkins) --- src/arch/riscv/trap_handler.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/arch/riscv') 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]); -- cgit v1.2.3