From 777071e01eda3765370cfc3221d459f97026e233 Mon Sep 17 00:00:00 2001 From: crgeddes Date: Thu, 27 Oct 2016 08:46:08 -0500 Subject: Add helpful comment for data storage exception I have had to look this up 1 too many times, I think adding this comment here will help me and whoever hits this in the future Change-Id: Ib434d2d56a90770cbdd45b1e52f0bea5fdc62158 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31905 Reviewed-by: Martin Gloff Reviewed-by: Matt Derksen Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: William G. Hoffa --- src/kernel/exception.C | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/kernel/exception.C b/src/kernel/exception.C index dad6ff676..2dd17e574 100644 --- a/src/kernel/exception.C +++ b/src/kernel/exception.C @@ -101,7 +101,11 @@ void kernel_execute_data_storage() } if (!handled) { - printk("Data Storage exception on %d: %lx, %lx @ %p\n", + + printk("Data Storage exception! \n" + "TID: %d\nBad Address: %lx\n" + "Exception Type: %lx\n" + "Instruction where it occurred: %p\n", t->tid, getDAR(), getDSISR(), t->context.nip); MAGIC_INSTRUCTION(MAGIC_BREAK_ON_ERROR); TaskManager::endTask(t, NULL, TASK_STATUS_CRASHED); @@ -112,7 +116,10 @@ extern "C" void kernel_execute_data_segment() { task_t* t = TaskManager::getCurrentTask(); - printk("Data Segment exception on %d: %lx @ %p\n", + printk("Data Segment exception!\n" + "TID: %d\n" + "Exception Type: %lx\n" + "Instruction where it occurred:%p\n", t->tid, getDAR(), t->context.nip); MAGIC_INSTRUCTION(MAGIC_BREAK_ON_ERROR); TaskManager::endTask(t, NULL, TASK_STATUS_CRASHED); -- cgit v1.2.3