xref: /optee_os/lib/libutee/tee_api_panic.c (revision 1bb929836182ecb96d2d9d268daa807c67596396)
1*1bb92983SJerome Forissier // SPDX-License-Identifier: BSD-2-Clause
294e8a4fcSJens Wiklander /*
394e8a4fcSJens Wiklander  * Copyright (c) 2014, STMicroelectronics International N.V.
494e8a4fcSJens Wiklander  * All rights reserved.
594e8a4fcSJens Wiklander  *
694e8a4fcSJens Wiklander  * Redistribution and use in source and binary forms, with or without
794e8a4fcSJens Wiklander  * modification, are permitted provided that the following conditions are met:
894e8a4fcSJens Wiklander  *
994e8a4fcSJens Wiklander  * 1. Redistributions of source code must retain the above copyright notice,
1094e8a4fcSJens Wiklander  * this list of conditions and the following disclaimer.
1194e8a4fcSJens Wiklander  *
1294e8a4fcSJens Wiklander  * 2. Redistributions in binary form must reproduce the above copyright notice,
1394e8a4fcSJens Wiklander  * this list of conditions and the following disclaimer in the documentation
1494e8a4fcSJens Wiklander  * and/or other materials provided with the distribution.
1594e8a4fcSJens Wiklander  *
1694e8a4fcSJens Wiklander  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1794e8a4fcSJens Wiklander  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1894e8a4fcSJens Wiklander  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1994e8a4fcSJens Wiklander  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
2094e8a4fcSJens Wiklander  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2194e8a4fcSJens Wiklander  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2294e8a4fcSJens Wiklander  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2394e8a4fcSJens Wiklander  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2494e8a4fcSJens Wiklander  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2594e8a4fcSJens Wiklander  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2694e8a4fcSJens Wiklander  * POSSIBILITY OF SUCH DAMAGE.
2794e8a4fcSJens Wiklander  */
2894e8a4fcSJens Wiklander #include <tee_api.h>
2994e8a4fcSJens Wiklander #include <utee_syscalls.h>
3094e8a4fcSJens Wiklander 
3194e8a4fcSJens Wiklander /* System API - Misc */
3294e8a4fcSJens Wiklander 
330e1c6e8eSJerome Forissier void TEE_Panic(TEE_Result panicCode)
3494e8a4fcSJens Wiklander {
3594e8a4fcSJens Wiklander 	utee_panic(panicCode);
3694e8a4fcSJens Wiklander }
37