]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/portable/GCC/RISC-V/portASM.S
Fix potential memory leak in the Win32 FreeRTOS+TCP network interface initialisation...
[freertos] / FreeRTOS / Source / portable / GCC / RISC-V / portASM.S
index 0adde585d176d4875e794fa0a09fac03d739cb20..68b6fa60706ccac48e1a4e3297f399cb819c98d9 100644 (file)
  * 1 tab == 4 spaces!\r
  */\r
 \r
-#if __riscv_xlen == 64\r
-       #error Not implemented yet - change lw to ld, and sw to sd.\r
-       #define portWORD_SIZE 8\r
-       #define store_x sd\r
-       #define load_x ld\r
-#elif __riscv_xlen == 32\r
-       #define portWORD_SIZE 4\r
-       #define store_x sw\r
-       #define load_x lw\r
-#else\r
-       #error Assembler did not define __riscv_xlen\r
-#endif\r
-\r
 /*\r
  * The FreeRTOS kernel's RISC-V port is split between the the code that is\r
  * common across all currently supported RISC-V chips (implementations of the\r
  * registers.\r
  *\r
  */\r
+#if __riscv_xlen == 64\r
+    #define portWORD_SIZE 8\r
+    #define store_x sd\r
+    #define load_x ld\r
+#elif __riscv_xlen == 32\r
+    #define store_x sw\r
+    #define load_x lw\r
+    #define portWORD_SIZE 4\r
+#else\r
+    #error Assembler did not define __riscv_xlen\r
+#endif\r
+\r
 #include "freertos_risc_v_chip_specific_extensions.h"\r
 \r
 /* Check the freertos_risc_v_chip_specific_extensions.h and/or command line\r