1/*
2 * Copyright 2017, Data61
3 * Commonwealth Scientific and Industrial Research Organisation (CSIRO)
4 * ABN 41 687 119 230.
5 *
6 * This software may be distributed and modified according to the terms of
7 * the BSD 2-Clause license. Note that NO WARRANTY is provided.
8 * See "LICENSE_BSD2.txt" for details.
9 *
10 * @TAG(DATA61_BSD)
11 */
12
13/* In the case of a fault or other unexpected error, your fault handler or the
14 * kernel often does not have enough information to report a helpful message to
15 * the user about who it was who caused the fault. The two functions below
16 * allow you to save a pointer to a user-friendly identity of the current
17 * thread. This can then be retrieved by a fault handler or error routine later
18 * in order to print a helpful debugging message.
19 */
20
21#pragma once
22
23void debug_set_id(const char *s);
24void debug_set_id_fn(const char * (*fn)(void));
25
26