We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe26af2 commit 4939884Copy full SHA for 4939884
portable/GCC/RISC-V/portContext.h
@@ -49,15 +49,17 @@
49
* specific version of freertos_risc_v_chip_specific_extensions.h. See the
50
* notes at the top of portASM.S file. */
51
#ifdef __riscv_32e
52
- #define portCONTEXT_SIZE ( 15 * portWORD_SIZE )
+ #define portIREG_COUNT 15
53
#define portCRITICAL_NESTING_OFFSET 13
54
#define portMSTATUS_OFFSET 14
55
#else
56
- #define portCONTEXT_SIZE ( 31 * portWORD_SIZE )
+ #define portIREG_COUNT 31
57
#define portCRITICAL_NESTING_OFFSET 29
58
#define portMSTATUS_OFFSET 30
59
#endif
60
+#define portICONTEXT_SIZE ( portIREG_COUNT * portWORD_SIZE )
61
62
+#define portCONTEXT_SIZE ( portICONTEXT_SIZE )
63
/*-----------------------------------------------------------*/
64
65
.extern pxCurrentTCB
0 commit comments