1 /*
2  * (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
3  *               Alexander Warg <warg@os.inf.tu-dresden.de>
4  *     economic rights: Technische Universität Dresden (Germany)
5  *
6  * This file is part of TUD:OS and distributed under the terms of the
7  * GNU General Public License 2.
8  * Please see the COPYING-GPL-2 file for details.
9  */
10 #include <l4/sys/ipc.h>
11 
12 void _exit(int) __attribute__((noreturn));
13 
_exit(int x)14 void _exit(int x)
15 {
16   (void)x;
17   l4_ipc_sleep(L4_IPC_NEVER);
18   while (1)
19     ;
20 }
21