]> git.sur5r.net Git - freertos/blob - Demo/HCS12_GCC_banked/asm-m68hcs12/arch-dragon12/arch/exit.h
Start to re-arrange files to include FreeRTOS+ in main download.
[freertos] / Demo / HCS12_GCC_banked / asm-m68hcs12 / arch-dragon12 / arch / exit.h
1 /* exit.h - Dragon12 development board\r
2    Copyright (C) 2004 Robotronics, Inc.\r
3    Author Jefferson Smith, Robotronics\r
4 \r
5 This file is free software; you can redistribute it and/or modify it\r
6 under the terms of the GNU General Public License as published by the\r
7 Free Software Foundation; either version 2, or (at your option) any\r
8 later version.\r
9 \r
10 In addition to the permissions in the GNU General Public License, the\r
11 Free Software Foundation gives you unlimited permission to link the\r
12 compiled version of this file with other programs, and to distribute\r
13 those programs without any restriction coming from the use of this\r
14 file.  (The General Public License restrictions do apply in other\r
15 respects; for example, they cover modification of the file, and\r
16 distribution when not linked into another program.)\r
17 \r
18 This file is distributed in the hope that it will be useful, but\r
19 WITHOUT ANY WARRANTY; without even the implied warranty of\r
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
21 General Public License for more details.\r
22 \r
23 You should have received a copy of the GNU General Public License\r
24 along with this program; see the file COPYING.  If not, write to\r
25 the Free Software Foundation, 59 Temple Place - Suite 330,\r
26 Boston, MA 02111-1307, USA.  */\r
27 \r
28 #ifndef _M68HC12_ARCH_DRAGON12_EXIT_H\r
29 #define _M68HC12_ARCH_DRAGON12_EXIT_H\r
30 \r
31 extern void _exit (short status) __attribute__((noreturn));\r
32 \r
33 /* For Dbug monitor, use swi to enter in the monitor upon exit.  */\r
34 extern inline void\r
35 _exit (short status)\r
36 {\r
37   while (1) {\r
38     __asm__ __volatile__ ("bgnd" : : );\r
39     __asm__ __volatile__ ("swi" : : "d"(status));\r
40   }\r
41 }\r
42 \r
43 #endif\r