From a803157e2e983de6a0ebe2b4fe9be538b6f192ff Mon Sep 17 00:00:00 2001 From: Dan Crowell Date: Tue, 10 Jan 2017 14:39:14 -0600 Subject: Add error logs tag for kernel errors so they get into KC Adding some @error tags for the critical kernel TIs so that a description ends up getting into Knowledge Center. ForwardPort: yes Change-Id: Ibe468d25a9390ab5f4285d969b9e9c838830f216 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34792 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Tested-by: Jenkins OP Build CI Reviewed-by: Matthew A. Ploetz Reviewed-by: William G. Hoffa --- src/lib/assert.C | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/assert.C b/src/lib/assert.C index e9ad3bf4e..953393c31 100644 --- a/src/lib/assert.C +++ b/src/lib/assert.C @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2011,2014 */ +/* Contributors Listed Below - COPYRIGHT 2011,2017 */ +/* [+] International Business Machines Corp. */ +/* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ @@ -77,8 +79,18 @@ extern "C" void __assert(AssertBehavior i_assertb, int i_line) printk("Assertion failed @%p on line %d. (kassert)\n", linkRegister(), i_line); + /*@ + * @errortype + * @moduleid KERNEL::MOD_KERNEL_INVALID + * @reasoncode KERNEL::RC_ASSERT + * @userdata1 Failing address + * @userdata2 + * @devdesc Kernel has asserted + * @custdesc Boot firmware has crashed with an internal + * error. + */ // Call function to create SRC and update TI Data area - termWriteSRC(TI_KERNEL_ASSERT, RC_ASSERT, + termWriteSRC(TI_KERNEL_ASSERT, KERNEL::RC_ASSERT, reinterpret_cast(linkRegister())); // Call to force TI -- cgit v1.2.1