X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=FreeRTOS%2FSource%2Fportable%2FGCC%2FRISC-V%2Fportmacro.h;h=6f79672aa0ea3f295c09c2fb4c812401ad7b399a;hb=63777264102a4a13b3fb796358ad565926785cb4;hp=1264bfcd9992e034aacacd69b6d6c63ffc249449;hpb=bd94a7fd5cb8d9225bbd3568941b8e2da7cabd5e;p=freertos diff --git a/FreeRTOS/Source/portable/GCC/RISC-V/portmacro.h b/FreeRTOS/Source/portable/GCC/RISC-V/portmacro.h index 1264bfcd9..6f79672aa 100644 --- a/FreeRTOS/Source/portable/GCC/RISC-V/portmacro.h +++ b/FreeRTOS/Source/portable/GCC/RISC-V/portmacro.h @@ -45,10 +45,11 @@ extern "C" { /* Type definitions. */ #if __riscv_xlen == 64 - #define portSTACK_TYPE uint64_t - #define portBASE_TYPE int64_t - #define portUBASE_TYPE uint64_t - #define portMAX_DELAY ( TickType_t ) 0xffffffffffffffffUL + #define portSTACK_TYPE uint64_t + #define portBASE_TYPE int64_t + #define portUBASE_TYPE uint64_t + #define portMAX_DELAY ( TickType_t ) 0xffffffffffffffffUL + #define portPOINTER_SIZE_TYPE uint64_t #elif __riscv_xlen == 32 #define portSTACK_TYPE uint32_t #define portBASE_TYPE int32_t @@ -76,7 +77,7 @@ not need to be guarded with a critical section. */ #error This is the RV32 port that has not yet been adapted for 64. #define portBYTE_ALIGNMENT 16 #else - #define portBYTE_ALIGNMENT 8 + #define portBYTE_ALIGNMENT 16 #endif /*-----------------------------------------------------------*/