2 * FreeRTOS Kernel V10.1.1
\r
3 * Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
\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
11 o permit persons to whom the Software is furnished to do so,
\r
12 * subject to the following conditions:
\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
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
24 * http://www.FreeRTOS.org
\r
25 * http://aws.amazon.com/freertos
\r
27 * 1 tab == 4 spaces!
\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
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
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
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
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
61 #ifndef __FREERTOS_RISC_V_EXTENSIONS_H__
\r
62 #define __FREERTOS_RISC_V_EXTENSIONS_H__
\r
64 #define portasmHAS_CLINT 1
\r
65 #define portasmADDITIONAL_CONTEXT_SIZE 0 /* Must be even number on 32-bit cores. */
\r
67 .macro portasmSAVE_ADDITIONAL_REGISTERS
\r
68 /* No additional registers to save, so this macro does nothing. */
\r
71 /* Restore the additional registers found on the Pulpino. */
\r
72 .macro portasmRESTORE_ADDITIONAL_REGISTERS
\r
73 /* No additional registers to restore, so this macro does nothing. */
\r
76 #endif /* __FREERTOS_RISC_V_EXTENSIONS_H__ */
\r