Marian Buschsieweke
1582fdd571
drivers/at25xxx: s/PAGE_SIZE/AT25_PAGE_SIZE/
...
On musl, PAGE_SIZE has a different meaning. So add an AT25_ prefix
to avoid a name clash.
2024-06-05 21:56:29 +02:00
Marian Buschsieweke
be387a25bd
sys/posix: Don't shadow <sys/select.h> on native
...
This fixes compilation issues on musl, where the host POSIX headers
don't mix well with RIOT's POSIX headers.
This adds an conditional `#include_next <sys/select.h>` to RIOT's
`<sys/select.h>` header.
2024-06-05 21:47:56 +02:00
benpicco
54cd5248c9
Merge pull request #20726 from maribu/core/thread/valgrind-disable
...
core/thread: "fix" valgrind erros in thread_measure_stack_free()
2024-06-05 13:08:02 +00:00
Marian Buschsieweke
11e273c4db
core/thread: "fix" valgrind erros in thread_measure_stack_free()
...
The dark magic used used in thread_measure_stack_free() is frowned upon
by valgrind. E.g. valgrind may deduce (by monitoring the stack pointer)
that a specific value was at some point allocated on the stack, but has
gone out of scope. When that value is now read again to estimate stack
usage, it does look a lot like someone passed a pointer to a stack
allocated value, and that pointer is referenced after that value has
gone out of scope.
This is "fixed" by temporarily disabling valgrind error reporting while
iterating over the stack.
2024-06-05 14:31:58 +02:00
chrysn
571754fcd9
Merge pull request #20727 from miri64/gh-actions/enh/bump-check-labels
...
check-labels.yml: bump to v1.1.2
2024-06-05 08:23:37 +00:00
Martine Lenders
98b5c18ce4
check-labels.yml: bump to v1.1.2
2024-06-05 10:15:11 +02:00
Marian Buschsieweke
ec71eba868
Merge pull request #20723 from benpicco/tests/thread_stack_alignment-usage
...
measure_stack_free_internal(): don't try to align end of stack
2024-06-04 18:27:54 +00:00
Benjamin Valentin
5b73294dad
tests/core/thread_stack_alignment: also test for stack usage
2024-06-04 16:57:05 +02:00
Benjamin Valentin
02fe256a06
core/thread: don't try to align end of stack
2024-06-04 16:57:05 +02:00
Dylan Laduranty
5668de68e0
Merge pull request #20722 from maribu/cpu/native/fix-gcc-14-1
...
cpu/native: fix compilation with GCC 14.1
2024-06-04 14:30:53 +00:00
Marian Buschsieweke
ff3f055dc7
cpu/native: fix compilation with GCC 14.1
...
The first argument to `calloc()` is the number of members, the
second the member size. This fixes an instance where the arguments
where switched.
2024-06-04 15:43:53 +02:00
mguetschow
2576649b52
Merge pull request #20700 from maribu/features/netif-cleanup
...
build system: clean up netif features
2024-06-03 12:40:35 +00:00
benpicco
266a8405e9
Merge pull request #20717 from krzysztof-cabaj/nucleo-f303ze-pinout
...
boards/nucleo-f303ze: add pinout
2024-06-03 11:59:19 +00:00
Marian Buschsieweke
47f52bd750
build system: provide netif_ethernet implicitly
...
If there is an Ethernet peripheral (periph_eth feature provided), we
can conclude that an Ethernet network interface can be provided.
Co-authored-by: mguetschow <mikolai.guetschow@tu-dresden.de>
2024-06-03 12:25:21 +02:00
mguetschow
f2c18b0b58
Merge pull request #20718 from LP-HAW/fix-sha2prng-init
...
sys/random: fix SHAxPRNG init_by_array
2024-06-03 09:27:00 +00:00
Marian Buschsieweke
86e0ca351a
Merge pull request #20719 from maribu/esp32/fix-build-gcc13
...
cpu/esp*: fix compilation with GCC 14.1.0
2024-06-03 09:08:38 +00:00
Marian Buschsieweke
784fb5da14
pkg/esp32_sdk: fix compilation with modern GCC
2024-06-02 18:51:08 +02:00
Marian Buschsieweke
59f37cd8f8
cpu/esp_common: fix compilation with modern newlib/gcc
2024-06-02 18:51:07 +02:00
Dylan Laduranty
a67793d601
Merge pull request #20279 from keestux/add-sara-sff-status
...
boards/sodaq-sara-sff: add status pin for SARA
2024-06-01 20:47:45 +00:00
Teufelchen
893fab953b
Merge pull request #20713 from dylad/pr/cpu/samd21/avoid_bitfields_reg
...
cpu/samd21: avoid the use of bitfield
2024-06-01 16:10:12 +00:00
Kees Bakker
08862b2e65
boards/sodaq-sara-sff: add status pin for SARA
2024-06-01 14:04:09 +02:00
LP-HAW
9cf9638fdc
sys/random: fix SHAxPRNG init_by_array
2024-05-31 23:29:09 +02:00
Marian Buschsieweke
886c6a2709
Merge pull request #18942 from maribu/cpu/native
...
cpu/native: fix build with musl
2024-05-31 18:22:21 +00:00
Marian Buschsieweke
e93b5e4b98
core/thread: fix thread_measure_stack_free()
...
`thread_measure_stack_free()` previously assumed that reading past the
stack is safe. When the stack was indeed part of a thread, the
`thread_t` structure is put after the stack, increasing the odds of
this assumption to hold. However, `thread_measure_stack_free()` could
also be used on the ISR stack, which may be allocated at the end of
SRAM.
A second parameter had to be added to indicate the stack size, so that
reading past the stack can now be prevented.
This also makes valgrind happy on `native`/`native64`.
2024-05-31 19:54:10 +02:00
krzysztof-cabaj
64a6adef84
boards/nucleo-f303ze: add pinout diagram to documentation page
2024-05-31 19:43:41 +02:00
krzysztof-cabaj
7a1b5c8a9b
boards/nucleo-f303ze: add pinout file
2024-05-31 19:36:34 +02:00
Marian Buschsieweke
835eaee630
*/Cargo.lock: bump rust-riot-wrappers
2024-05-31 18:26:48 +02:00
Marian Buschsieweke
2ef8b21ea2
Merge pull request #20716 from kfessel/f-make-compile-commads
...
Makefile.include: place compile_commands.json by rule target
2024-05-31 12:08:08 +00:00
Karl Fessel
b58b25516c
Makefile.include: place compile_commands.json by rule target
2024-05-31 13:37:43 +02:00
Marian Buschsieweke
f34cd3f7c1
cpu/native: fix build with musl
...
This changes a bunch of things that allows building with the musl C lib,
provided that `libucontext-dev` and `pkg-config` are installed.
Note that installing libucontext makes absolutely zero sense on C libs
that do natively provide this deprecated System V API, such as glibc.
Hence, it no sane glibc setup is expected to ever have libucontext
installed.
A main pain point was that argv and argc are expected to be passed to
init_fini handlers, but that is actually a glibc extension. This just
parses `/proc/self/cmdline` by hand to populate argv and argc during
startup, unless running on glibc.
2024-05-31 12:18:33 +02:00
Marian Buschsieweke
095bc344fe
Merge pull request #20715 from kaspar030/ci_disable_esp32-wroom-32
...
ci: disable esp32-wroom-32 tests
2024-05-30 20:44:48 +00:00
f6e9a1dbaa
ci: disable esp32-wroom-32 tests
2024-05-30 22:23:28 +02:00
Dylan Laduranty
93639cb73e
Merge pull request #20708 from dylad/pr/cpu/saml21/avoid_bitfields_reg
...
cpu/saml21: avoid the use of bitfield in register call
2024-05-30 15:42:20 +00:00
Dylan Laduranty
bc188c5a48
cpu/saml21: avoid the use of bitfield
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-05-30 17:29:00 +02:00
Marian Buschsieweke
230df5fe3b
Merge pull request #20712 from maribu/dist/tools/tapsetup/doas
...
dist/tools/tapsetup: make compatible with doas
2024-05-30 10:37:29 +00:00
Dylan Laduranty
16f6a4bb93
cpu/samd21: avoid the use of bitfield
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-05-30 12:01:24 +02:00
Marian Buschsieweke
d05d33f636
dist/tools/tapsetup: make compatible with doas
...
`doas` doesn't set `SUDO_USER`, but `DOAS_USER`. This populates
`SUDO_USER` with `DOAS_USER` if it is empty, so the script works with
both doas and sudo.
2024-05-30 09:38:44 +02:00
Marian Buschsieweke
ea3d4c8a65
Merge pull request #20709 from benpicco/stack_overflow-thread
...
cpu/cortexm_common: print last active thread on stack corruption
2024-05-30 07:17:21 +00:00
Marian Buschsieweke
be4dd0eb7c
Merge pull request #20710 from dylad/pr/cpu/saml1x/avoid_bitfields_reg
...
cpu/saml1x: avoid the use of bitfield in register calls
2024-05-30 07:17:03 +00:00
Benjamin Valentin
00c1f4ea4d
cpu/cortexm_common: print last active thread on stack corruption
2024-05-29 18:27:27 +02:00
Dylan Laduranty
0ce8780dfa
cpu/saml1x: avoid the use of bitfield
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-05-29 17:45:25 +02:00
benpicco
251ea7f75a
Merge pull request #20687 from benpicco/nanocoap_fs
...
nanocoap_fs: add nanoCoAP as VFS backend (remote CoAP fs)
2024-05-29 15:00:24 +00:00
Benjamin Valentin
eacc4f9152
pkg/flashdb: use common MIN() macro
2024-05-29 16:35:32 +02:00
Benjamin Valentin
4ff877d239
tests/periph/hwrng: LIMIT -> NUM_BYTES
2024-05-29 14:20:49 +02:00
Dylan Laduranty
611e364864
Merge pull request #20707 from krzysztof-cabaj/nucleo-l4r5zi-l496zg-pinout
...
boards/nucleo-l4r5zi and l496zg: add pinout to documentation page
2024-05-29 11:36:11 +00:00
krzysztof-cabaj
0d5b3a2cd4
boards/nucleo-l496zg: add pinout to board documentation
2024-05-29 11:47:26 +02:00
krzysztof-cabaj
2b32b4cfa8
boards/nucleo-l496zg: add pinout file
2024-05-29 11:33:38 +02:00
Benjamin Valentin
f42386587d
tests/nanocoap_fs: add test for nanoCoAP fs
2024-05-29 11:32:22 +02:00
Benjamin Valentin
a87687c14e
nanocoap_fs: add nanoCoAP as VFS backend
2024-05-29 11:32:22 +02:00
mguetschow
bceb99c25d
Merge pull request #20706 from maribu/sys/event/doc/type-safety
...
sys/event: change example in doc to be type safe
2024-05-29 09:17:10 +00:00