/* * SPDX-FileCopyrightText: 2014-2015 Freie Universität Berlin (FUB) and INRIA * SPDX-License-Identifier: LGPL-2.1-only */ /** * @file * @ingroup cpu_native * @brief Crash handling functions implementation for 'native' port * @author Ludwig Knüpfer * @author Kévin Roussel * @author Oliver Hahm */ #include #include #include #include "native_internal.h" void panic_arch(void) { extern unsigned _native_retval; _native_retval = EINVAL; #ifdef DEVELHELP /* since we're atop an Unix-like platform, just use the (developer-)friendly core-dump feature */ kill(_native_pid, SIGTRAP); #endif }