]> git.sur5r.net Git - freertos/blob - FreeRTOS/Source/portable/GCC/RISC-V-RV32/CLINT_no_extensions/freertos_risc_v_port_specific_extensions.h
0252ecda59a148ea26d094b4f8991c6c2ceec1a1
[freertos] / FreeRTOS / Source / portable / GCC / RISC-V-RV32 / CLINT_no_extensions / freertos_risc_v_port_specific_extensions.h
1 /*\r
2  * FreeRTOS Kernel V10.1.1\r
3  * Copyright (C) 2018 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
4  *\r
5  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
6  * this software and associated documentation files (the "Software"), to deal in\r
7  * the Software without restriction, including without limitation the rights to\r
8  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\r
9  * the Software, and t\r
10 \r
11  o permit persons to whom the Software is furnished to do so,\r
12  * subject to the following conditions:\r
13  *\r
14  * The above copyright notice and this permission notice shall be included in all\r
15  * copies or substantial portions of the Software.\r
16  *\r
17  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
18  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\r
19  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\r
20  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\r
21  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
22  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
23  *\r
24  * http://www.FreeRTOS.org\r
25  * http://aws.amazon.com/freertos\r
26  *\r
27  * 1 tab == 4 spaces!\r
28  */\r
29 \r
30 /*\r
31  * The FreeRTOS kernel's RISC-V port is split between the the code that is\r
32  * common across all currently supported RISC-V chips (implementations of the\r
33  * RISC-V ISA), and code which tailors the port to a specific RISC-V chip:\r
34  *\r
35  * + The code that is common to all RISC-V chips is implemented in\r
36  *   FreeRTOS\Source\portable\GCC\RISC-V-RV32\portASM.S.  There is only one\r
37  *   portASM.S file because the same file is used no matter which RISC-V chip is\r
38  *   in use.\r
39  *\r
40  * + The code that tailors the kernel's RISC-V port to a specific RISC-V\r
41  *   chip is implemented in freertos_risc_v_port_specific_extensions.h.  There\r
42  *   is one freertos_risc_v_port_specific_extensions.h that can be used with any\r
43  *   RISC-V chip that both includes a standard CLINT and does not add to the\r
44  *   base set of RISC-V registers.  There are additional\r
45  *   freertos_risc_v_port_specific_extensions.h files for RISC-V implementations\r
46  *   that do not include a standard CLINT or do add to the base set of RISC-V\r
47  *   regiters.\r
48  *\r
49  * CARE MUST BE TAKEN TO INCLDUE THE CORRECT\r
50  * freertos_risc_v_port_specific_extensions.h HEADER FILE FOR THE CHIP\r
51  * IN USE.  To include the correct freertos_risc_v_port_specific_extensions.h\r
52  * header file ensure the path to the correct header file is in the assembler's\r
53  * include path.\r
54  *\r
55  * This freertos_risc_v_port_specific_extensions.h is for use on RISC-V chips\r
56  * that include a standard CLINT and do not add to the base set of RISC-V\r
57  * registers.\r
58  *\r
59  */\r
60 \r
61 #ifndef __FREERTOS_RISC_V_EXTENSIONS_H__\r
62 #define __FREERTOS_RISC_V_EXTENSIONS_H__\r
63 \r
64 #define portasmHAS_CLINT 1\r
65 \r
66 #endif /* __FREERTOS_RISC_V_EXTENSIONS_H__ */\r