diff options
| author | Patrick Williams <iawillia@us.ibm.com> | 2012-04-10 11:10:10 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-04-10 17:05:07 -0500 |
| commit | 90bf338378eefa0af92585ff106add8df03dc163 (patch) | |
| tree | b67ddf2922637f192d2137db654ef1807be28fc4 /src/include/sys | |
| parent | 7ff759930524692bfd643167ac84df2ebd080e98 (diff) | |
| download | talos-hostboot-90bf338378eefa0af92585ff106add8df03dc163.tar.gz talos-hostboot-90bf338378eefa0af92585ff106add8df03dc163.zip | |
Cause assert to crash a process rather than exit cleanly.
Change-Id: I3a890aa624b5733b8b1bf423e13f4567027dae19
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/870
Tested-by: Jenkins Server
Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/sys')
| -rw-r--r-- | src/include/sys/task.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/sys/task.h b/src/include/sys/task.h index 0627784f1..b86b6f4ec 100644 --- a/src/include/sys/task.h +++ b/src/include/sys/task.h @@ -77,6 +77,12 @@ void task_end() NO_RETURN; */ void task_end2(void* retval) NO_RETURN; +/** @define task_crash + * @brief End the calling task as if it crashed. + * + */ +#define task_crash() ((*(char*)NULL) = 'F') + /** @fn task_gettid * @brief Get task ID of calling task. * |

