diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-11-03 14:07:06 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-11-03 14:07:06 +0000 |
commit | 8b0021db47f08c7523609987d87be34176bbe9d4 (patch) | |
tree | f8f0e4efdb5b51a3c230bb98eaeef298a4e7428f /os/rt/ports/SIMIA32/chcore.c | |
parent | fb68952e20435450ece99a1d1bbc399bf292b355 (diff) | |
download | ChibiOS-8b0021db47f08c7523609987d87be34176bbe9d4.tar.gz ChibiOS-8b0021db47f08c7523609987d87be34176bbe9d4.tar.bz2 ChibiOS-8b0021db47f08c7523609987d87be34176bbe9d4.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7472 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/ports/SIMIA32/chcore.c')
-rw-r--r-- | os/rt/ports/SIMIA32/chcore.c | 50 |
1 files changed, 29 insertions, 21 deletions
diff --git a/os/rt/ports/SIMIA32/chcore.c b/os/rt/ports/SIMIA32/chcore.c index 24b38fa8f..b4357dfc7 100644 --- a/os/rt/ports/SIMIA32/chcore.c +++ b/os/rt/ports/SIMIA32/chcore.c @@ -1,6 +1,6 @@ /*
ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
- 2011,2012,2013 Giovanni Di Sirio.
+ 2011,2012,2013,2014 Giovanni Di Sirio.
This file is part of ChibiOS/RT.
@@ -16,24 +16,41 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-
- ---
-
- A special exception to the GPL can be applied should you wish to distribute
- a combined work that includes ChibiOS/RT, without being obliged to provide
- the source code for any proprietary components. See the file exception.txt
- for full details of how and when the exception can be applied.
*/
/**
- * @addtogroup SIMIA32_CORE
+ * @file SIMIA32/chcore.c
+ * @brief Simulator on IA32 port code.
+ *
+ * @addtogroup SIMIA32_GCC_CORE
* @{
*/
-#include <stdlib.h>
-
#include "ch.h"
-#include "hal.h"
+
+/*===========================================================================*/
+/* Module local definitions. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Module exported variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Module local types. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Module local variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Module local functions. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Module exported functions. */
+/*===========================================================================*/
/**
* Performs a context switch between two threads.
@@ -69,15 +86,6 @@ static void __dummy(Thread *ntp, Thread *otp) { }
/**
- * Halts the system. In this implementation it just exits the simulation.
- */
-__attribute__((fastcall))
-void port_halt(void) {
-
- exit(2);
-}
-
-/**
* @brief Start a thread by invoking its work function.
* @details If the work function returns @p chThdExit() is automatically
* invoked.
|