summaryrefslogtreecommitdiff
path: root/platforms/chibios/syscall-fallbacks.c
diff options
context:
space:
mode:
authorStefan Kerkmann <karlk90@pm.me>2021-11-20 21:04:16 +0100
committerGitHub <noreply@github.com>2021-11-20 20:04:16 +0000
commit5c2052fd476cb1d15eab66c23016a1add93f6767 (patch)
tree318fc95b5a958075a9b5d1955696e294769793ac /platforms/chibios/syscall-fallbacks.c
parent32215d5bff52262542a2f8d2a221b0303f02c019 (diff)
[Core] RISC-V toolchain and picolibc fixes (#15109)
* [Core] Fix RISC-V toolchain installation The risc-v toolchain is only available on distributions based on Debian 11+ so we check for their availability before installing them. * [Core] Fix heap symbols and syscalls for picolibc picolibc internally uses __heap_start and __heap_end instead of the defacto chibios linker script standard __heap_base__ and __heap_end__ therefore we introduce these symbols as an alias. Usually all memory used within QMK is statically allocated, but some algorithms make usage of malloc and friends. Also the timeval struct is not defined by picolibc for syscalls, therefore it is declared as stub.
Diffstat (limited to 'platforms/chibios/syscall-fallbacks.c')
-rw-r--r--platforms/chibios/syscall-fallbacks.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/platforms/chibios/syscall-fallbacks.c b/platforms/chibios/syscall-fallbacks.c
index 4569879c7c..7150a46326 100644
--- a/platforms/chibios/syscall-fallbacks.c
+++ b/platforms/chibios/syscall-fallbacks.c
@@ -22,6 +22,7 @@
* the _reent struct has to be defined. */
#if defined(USE_PICOLIBC)
struct _reent;
+struct timeval;
#endif
#pragma GCC diagnostic ignored "-Wmissing-prototypes"