summaryrefslogtreecommitdiffstats
path: root/src/lib/assert.C
diff options
context:
space:
mode:
authorMissy Connell <missyc@us.ibm.com>2012-10-22 16:25:14 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-10-24 15:43:41 -0500
commitad829721422d652ea89123c6e4c8aecdee0144af (patch)
treebcf03c419c8aa87e8c235355cd5c2440a3c7266f /src/lib/assert.C
parent799ce7095b6a019d4103685ae85558418b9368c7 (diff)
downloadtalos-hostboot-ad829721422d652ea89123c6e4c8aecdee0144af.tar.gz
talos-hostboot-ad829721422d652ea89123c6e4c8aecdee0144af.zip
Terminate Immediate Structure defintion
- Add include files into the fsp.tar Change-Id: I12a50f7e09f70b1bc6acf436d896b6f3747a7507 RTC:50578 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2115 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/lib/assert.C')
-rw-r--r--src/lib/assert.C51
1 files changed, 29 insertions, 22 deletions
diff --git a/src/lib/assert.C b/src/lib/assert.C
index 7b8318ae3..dbfd8ed6a 100644
--- a/src/lib/assert.C
+++ b/src/lib/assert.C
@@ -1,25 +1,25 @@
-// IBM_PROLOG_BEGIN_TAG
-// This is an automatically generated prolog.
-//
-// $Source: src/lib/assert.C $
-//
-// IBM CONFIDENTIAL
-//
-// COPYRIGHT International Business Machines Corp. 2011
-//
-// p1
-//
-// Object Code Only (OCO) source materials
-// Licensed Internal Code Source Materials
-// IBM HostBoot Licensed Internal Code
-//
-// The source code for this program is not published or other-
-// wise divested of its trade secrets, irrespective of what has
-// been deposited with the U.S. Copyright Office.
-//
-// Origin: 30
-//
-// IBM_PROLOG_END
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/lib/assert.C $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* COPYRIGHT International Business Machines Corp. 2011,2012 */
+/* */
+/* p1 */
+/* */
+/* Object Code Only (OCO) source materials */
+/* Licensed Internal Code Source Materials */
+/* IBM HostBoot Licensed Internal Code */
+/* */
+/* The source code for this program is not published or otherwise */
+/* divested of its trade secrets, irrespective of what has been */
+/* deposited with the U.S. Copyright Office. */
+/* */
+/* Origin: 30 */
+/* */
+/* IBM_PROLOG_END_TAG */
/** @file assert.C
* @brief Common handling functions for assert paths.
*/
@@ -30,6 +30,9 @@
#include <sys/task.h>
#include <arch/ppc.H>
+#include <kernel/hbterminatetypes.H>
+#include <kernel/terminate.H>
+
/** Hook location for trace module to set up when loaded. */
namespace TRACE { void (*traceCallback)(void*, size_t) = NULL; };
@@ -63,6 +66,10 @@ extern "C" void __assert(AssertBehavior i_assertb, int i_line)
case ASSERT_KERNEL: // Kernel assert called.
printk("Assertion failed @%p on line %d.\n",
linkRegister(), i_line);
+
+ // Create and src
+ // Call function to save SRC and perform a TI
+ //terminateAndUpdateSaveArea(TI_WITH_SRC, TI_KERNAL_ASSERT, NULL);
break;
}
OpenPOWER on IntegriCloud