]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/portable/ThirdParty/GCC/RISC-V/portasm.S
Removing RISC-V port under ThirdParty.
[freertos] / FreeRTOS / Source / portable / ThirdParty / GCC / RISC-V / portasm.S
diff --git a/FreeRTOS/Source/portable/ThirdParty/GCC/RISC-V/portasm.S b/FreeRTOS/Source/portable/ThirdParty/GCC/RISC-V/portasm.S
deleted file mode 100644 (file)
index 78b2265..0000000
+++ /dev/null
@@ -1,282 +0,0 @@
-/*\r
-    FreeRTOS V8.2.3 - Copyright (C) 2015 Real Time Engineers Ltd.\r
-    All rights reserved\r
-\r
-    VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
-\r
-    This file is part of the FreeRTOS distribution and was contributed\r
-    to the project by Technolution B.V. (www.technolution.nl,\r
-    freertos-riscv@technolution.eu) under the terms of the FreeRTOS\r
-    contributors license.\r
-\r
-    FreeRTOS is free software; you can redistribute it and/or modify it under\r
-    the terms of the GNU General Public License (version 2) as published by the\r
-    Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.\r
-\r
-    ***************************************************************************\r
-    >>!   NOTE: The modification to the GPL is included to allow you to     !<<\r
-    >>!   distribute a combined work that includes FreeRTOS without being   !<<\r
-    >>!   obliged to provide the source code for proprietary components     !<<\r
-    >>!   outside of the FreeRTOS kernel.                                   !<<\r
-    ***************************************************************************\r
-\r
-    FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY\r
-    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\r
-    FOR A PARTICULAR PURPOSE.  Full license text is available on the following\r
-    link: http://www.freertos.org/a00114.html\r
-\r
-    ***************************************************************************\r
-     *                                                                       *\r
-     *    FreeRTOS provides completely free yet professionally developed,    *\r
-     *    robust, strictly quality controlled, supported, and cross          *\r
-     *    platform software that is more than just the market leader, it     *\r
-     *    is the industry''s de facto standard.                               *\r
-     *                                                                       *\r
-     *    Help yourself get started quickly while simultaneously helping     *\r
-     *    to support the FreeRTOS project by purchasing a FreeRTOS           *\r
-     *    tutorial book, reference manual, or both:                          *\r
-     *    http://www.FreeRTOS.org/Documentation                              *\r
-     *                                                                       *\r
-    ***************************************************************************\r
-\r
-    http://www.FreeRTOS.org/FAQHelp.html - Having a problem?  Start by reading\r
-    the FAQ page "My application does not run, what could be wrong?".  Have you\r
-    defined configASSERT()?\r
-\r
-    http://www.FreeRTOS.org/support - In return for receiving this top quality\r
-    embedded software for free we request you assist our global community by\r
-    participating in the support forum.\r
-\r
-    http://www.FreeRTOS.org/training - Investing in training allows your team to\r
-    be as productive as possible as early as possible.  Now you can receive\r
-    FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers\r
-    Ltd, and the world's leading authority on the world's leading RTOS.\r
-\r
-    http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,\r
-    including FreeRTOS+Trace - an indispensable productivity tool, a DOS\r
-    compatible FAT file system, and our tiny thread aware UDP/IP stack.\r
-\r
-    http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.\r
-    Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.\r
-\r
-    http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High\r
-    Integrity Systems ltd. to sell under the OpenRTOS brand.  Low cost OpenRTOS\r
-    licenses offer ticketed support, indemnification and commercial middleware.\r
-\r
-    http://www.SafeRTOS.com - High Integrity Systems also provide a safety\r
-    engineered and independently SIL3 certified version for use in safety and\r
-    mission critical applications that require provable dependability.\r
-\r
-    1 tab == 4 spaces!\r
-*/\r
-\r
-\r
-#ifdef __riscv64\r
-# define STORE    sd\r
-# define LOAD     ld\r
-# define REGBYTES 8\r
-#else\r
-# define STORE    sw\r
-# define LOAD     lw\r
-# define REGBYTES 4\r
-#endif\r
-\r
-#define MSTATUS_PRV1 0x1800\r
-\r
-.global portSAVE_CONTEXT\r
-.global portRESTORE_CONTEXT\r
-\r
-//.global xPortStartScheduler\r
-.global vPortYield\r
-.global vTaskIncrementTick\r
-.global vPortEndScheduler\r
-.global xExitStack\r
-\r
-\r
-/* Macro for saving task context */\r
-.macro portSAVE_CONTEXT\r
-       .global pxCurrentTCB\r
-       /* make room in stack */\r
-       addi    sp, sp, -REGBYTES * 32\r
-\r
-       /* Save Context */\r
-       STORE   x1, 0x0(sp)\r
-       STORE   x2, 1 * REGBYTES(sp)\r
-       STORE   x3, 2 * REGBYTES(sp)\r
-       STORE   x4, 3 * REGBYTES(sp)\r
-       STORE   x5, 4 * REGBYTES(sp)\r
-       STORE   x6, 5 * REGBYTES(sp)\r
-       STORE   x7, 6 * REGBYTES(sp)\r
-       STORE   x8, 7 * REGBYTES(sp)\r
-       STORE   x9, 8 * REGBYTES(sp)\r
-       STORE   x10, 9 * REGBYTES(sp)\r
-       STORE   x11, 10 * REGBYTES(sp)\r
-       STORE   x12, 11 * REGBYTES(sp)\r
-       STORE   x13, 12 * REGBYTES(sp)\r
-       STORE   x14, 13 * REGBYTES(sp)\r
-       STORE   x15, 14 * REGBYTES(sp)\r
-       STORE   x16, 15 * REGBYTES(sp)\r
-       STORE   x17, 16 * REGBYTES(sp)\r
-       STORE   x18, 17 * REGBYTES(sp)\r
-       STORE   x19, 18 * REGBYTES(sp)\r
-       STORE   x20, 19 * REGBYTES(sp)\r
-       STORE   x21, 20 * REGBYTES(sp)\r
-       STORE   x22, 21 * REGBYTES(sp)\r
-       STORE   x23, 22 * REGBYTES(sp)\r
-       STORE   x24, 23 * REGBYTES(sp)\r
-       STORE   x25, 24 * REGBYTES(sp)\r
-       STORE   x26, 25 * REGBYTES(sp)\r
-       STORE   x27, 26 * REGBYTES(sp)\r
-       STORE   x28, 27 * REGBYTES(sp)\r
-       STORE   x29, 28 * REGBYTES(sp)\r
-       STORE   x30, 29 * REGBYTES(sp)\r
-       STORE   x31, 30 * REGBYTES(sp)\r
-\r
-       /* Store current stackpointer in task control block (TCB) */\r
-       LOAD    t0, pxCurrentTCB        //pointer\r
-       STORE   sp, 0x0(t0)\r
-       .endm\r
-\r
-/* Saves current error program counter (EPC) as task program counter */\r
-.macro portSAVE_EPC\r
-       csrr    t0, mepc\r
-       STORE   t0, 31 * REGBYTES(sp)\r
-       .endm\r
-\r
-/* Saves current return adress (RA) as task program counter */\r
-.macro portSAVE_RA\r
-       STORE   ra, 31 * REGBYTES(sp)\r
-       .endm\r
-\r
-/* Macro for restoring task context */\r
-.macro portRESTORE_CONTEXT\r
-\r
-       .global pxCurrentTCB\r
-       /* Load stack pointer from the current TCB */\r
-       LOAD    sp, pxCurrentTCB\r
-       LOAD    sp, 0x0(sp)\r
-\r
-       /* Load task program counter */\r
-       LOAD    t0, 31 * REGBYTES(sp)\r
-       csrw    mepc, t0\r
-\r
-       /* Restore registers,\r
-          Skip global pointer because that does not change */\r
-       LOAD    x1, 0x0(sp)\r
-       LOAD    x4, 3 * REGBYTES(sp)\r
-       LOAD    x5, 4 * REGBYTES(sp)\r
-       LOAD    x6, 5 * REGBYTES(sp)\r
-       LOAD    x7, 6 * REGBYTES(sp)\r
-       LOAD    x8, 7 * REGBYTES(sp)\r
-       LOAD    x9, 8 * REGBYTES(sp)\r
-       LOAD    x10, 9 * REGBYTES(sp)\r
-       LOAD    x11, 10 * REGBYTES(sp)\r
-       LOAD    x12, 11 * REGBYTES(sp)\r
-       LOAD    x13, 12 * REGBYTES(sp)\r
-       LOAD    x14, 13 * REGBYTES(sp)\r
-       LOAD    x15, 14 * REGBYTES(sp)\r
-       LOAD    x16, 15 * REGBYTES(sp)\r
-       LOAD    x17, 16 * REGBYTES(sp)\r
-       LOAD    x18, 17 * REGBYTES(sp)\r
-       LOAD    x19, 18 * REGBYTES(sp)\r
-       LOAD    x20, 19 * REGBYTES(sp)\r
-       LOAD    x21, 20 * REGBYTES(sp)\r
-       LOAD    x22, 21 * REGBYTES(sp)\r
-       LOAD    x23, 22 * REGBYTES(sp)\r
-       LOAD    x24, 23 * REGBYTES(sp)\r
-       LOAD    x25, 24 * REGBYTES(sp)\r
-       LOAD    x26, 25 * REGBYTES(sp)\r
-       LOAD    x27, 26 * REGBYTES(sp)\r
-       LOAD    x28, 27 * REGBYTES(sp)\r
-       LOAD    x29, 28 * REGBYTES(sp)\r
-       LOAD    x30, 29 * REGBYTES(sp)\r
-       LOAD    x31, 30 * REGBYTES(sp)\r
-\r
-       addi    sp, sp, REGBYTES * 32\r
-\r
-       /* Enable global interupt */\r
-    csrs mstatus,8\r
-\r
-       ret\r
-       .endm\r
-\r
-\r
-/*\r
-xPortStartScheduler:\r
-#ifdef __gracefulExit\r
-\r
-       la              t0, xStartContext\r
-       STORE   x1, 0x0(t0)\r
-       STORE   x2, 1 * REGBYTES(t0)\r
-       STORE   x3, 2 * REGBYTES(t0)\r
-       STORE   x4, 3 * REGBYTES(t0)\r
-       STORE   x5, 4 * REGBYTES(t0)\r
-       STORE   x6, 5 * REGBYTES(t0)\r
-       STORE   x7, 6 * REGBYTES(t0)\r
-       STORE   x8, 7 * REGBYTES(t0)\r
-       STORE   x9, 8 * REGBYTES(t0)\r
-       STORE   x10, 9 * REGBYTES(t0)\r
-       STORE   x11, 10 * REGBYTES(t0)\r
-       STORE   x12, 11 * REGBYTES(t0)\r
-       STORE   x13, 12 * REGBYTES(t0)\r
-       STORE   x14, 13 * REGBYTES(t0)\r
-       STORE   x15, 14 * REGBYTES(t0)\r
-       STORE   x16, 15 * REGBYTES(t0)\r
-       STORE   x17, 16 * REGBYTES(t0)\r
-       STORE   x18, 17 * REGBYTES(t0)\r
-       STORE   x19, 18 * REGBYTES(t0)\r
-       STORE   x20, 19 * REGBYTES(t0)\r
-       STORE   x21, 20 * REGBYTES(t0)\r
-       STORE   x22, 21 * REGBYTES(t0)\r
-       STORE   x23, 22 * REGBYTES(t0)\r
-       STORE   x24, 23 * REGBYTES(t0)\r
-       STORE   x25, 24 * REGBYTES(t0)\r
-       STORE   x26, 25 * REGBYTES(t0)\r
-       STORE   x27, 26 * REGBYTES(t0)\r
-       STORE   x28, 27 * REGBYTES(t0)\r
-       STORE   x29, 28 * REGBYTES(t0)\r
-       STORE   x30, 29 * REGBYTES(t0)\r
-       STORE   x31, 30 * REGBYTES(t0)\r
-#endif\r
-       jal             vPortSetupTimer\r
-       portRESTORE_CONTEXT\r
-*/\r
-\r
-vPortEndScheduler:\r
-#ifdef __gracefulExit\r
-       /* Load current context from xStartContext */\r
-       la              t0, xStartContext\r
-       LOAD    x1, 0x0(t0)\r
-       LOAD    x2, 1 * REGBYTES(t0)\r
-       LOAD    x3, 2 * REGBYTES(t0)\r
-       LOAD    x4, 3 * REGBYTES(t0)\r
-       LOAD    x5, 4 * REGBYTES(t0)\r
-       LOAD    x6, 5 * REGBYTES(t0)\r
-       LOAD    x7, 6 * REGBYTES(t0)\r
-       LOAD    x8, 7 * REGBYTES(t0)\r
-       LOAD    x9, 8 * REGBYTES(t0)\r
-       LOAD    x10, 9 * REGBYTES(t0)\r
-       LOAD    x11, 10 * REGBYTES(t0)\r
-       LOAD    x12, 11 * REGBYTES(t0)\r
-       LOAD    x13, 12 * REGBYTES(t0)\r
-       LOAD    x14, 13 * REGBYTES(t0)\r
-       LOAD    x15, 14 * REGBYTES(t0)\r
-       LOAD    x16, 15 * REGBYTES(t0)\r
-       LOAD    x17, 16 * REGBYTES(t0)\r
-       LOAD    x18, 17 * REGBYTES(t0)\r
-       LOAD    x19, 18 * REGBYTES(t0)\r
-       LOAD    x20, 19 * REGBYTES(t0)\r
-       LOAD    x21, 20 * REGBYTES(t0)\r
-       LOAD    x22, 21 * REGBYTES(t0)\r
-       LOAD    x23, 22 * REGBYTES(t0)\r
-       LOAD    x24, 23 * REGBYTES(t0)\r
-       LOAD    x25, 24 * REGBYTES(t0)\r
-       LOAD    x26, 25 * REGBYTES(t0)\r
-       LOAD    x27, 26 * REGBYTES(t0)\r
-       LOAD    x28, 27 * REGBYTES(t0)\r
-       LOAD    x29, 28 * REGBYTES(t0)\r
-       LOAD    x30, 39 * REGBYTES(t0)\r
-       LOAD    x31, 30 * REGBYTES(t0)\r
-#endif\r
-       ret\r
-\r