| /* |
| * Copyright 2014, NICTA |
| * |
| * This software may be distributed and modified according to the terms of |
| * the BSD 2-Clause license. Note that NO WARRANTY is provided. |
| * See "LICENSE_BSD2.txt" for details. |
| * |
| * @TAG(NICTA_BSD) |
| */ |
| |
| /* In the case of a fault or other unexpected error, your fault handler or the |
| * kernel often does not have enough information to report a helpful message to |
| * the user about who it was who caused the fault. The two functions below |
| * allow you to save a pointer to a user-friendly identity of the current |
| * thread. This can then be retrieved by a fault handler or error routine later |
| * in order to print a helpful debugging message. |
| */ |
| |
| #ifndef _LIBSEL4DEBUG_IDENTITY_H_ |
| #define _LIBSEL4DEBUG_IDENTITY_H_ |
| |
| void debug_set_id(const char *s); |
| void debug_set_id_fn(const char * (*fn)(void)); |
| |
| #endif |