feat: add lab-rv32i-freertos-event-group card

This commit is contained in:
user
2026-07-21 19:13:55 +02:00
commit b72408da7f
67 changed files with 37880 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env sh
set -eu
nm=${RISCV_NM:-riscv64-unknown-elf-nm}
readelf=${RISCV_READELF:-riscv64-unknown-elf-readelf}
elf=build/task01_event_group/prog.elf
if "$nm" -C -u "$elf" | grep -Eq '__cxa_|_Unwind_|std::|libstdc\+\+'; then echo "hosted C++ runtime dependency" >&2; exit 1; fi
if "$nm" -C --defined-only "$elf" | grep -Eq 'vtable for|typeinfo for|typeinfo name for'; then echo "virtual/RTTI metadata" >&2; exit 1; fi
if "$readelf" -S "$elf" | grep -Eq '\.init_array|\.eh_frame|\.gcc_except_table'; then echo "initializer/exception/unwind section" >&2; exit 1; fi
for symbol in event_group_debug_checkpoint g_all_snapshot g_timeout_snapshot g_event_group_pass; do
if ! "$nm" --defined-only "$elf" | grep -Fq "$symbol"; then echo "missing evidence: $symbol" >&2; exit 1; fi
done
if ! "$nm" -C --defined-only "$elf" | grep -E '[[:space:]][bB][[:space:]].*g_event_storage' >/dev/null; then
echo "event group storage is not in .bss" >&2; exit 1
fi
echo "PASS ABI: EventGroup storage in .bss; typed wrapper has no C++ runtime"