mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-11-11 14:47:39 +00:00
GPIO initialization occurs on the capture worker, whose allocator arena is a private anonymous mapping rather than the main process heap. Include readable private writable anonymous mappings in the existing bounded admission, while retaining the current-stack window and 48-MiB ceiling. Run the map-node residency regression inside a real worker thread. This fails even with main-heap locking and passes with anonymous arena locking. Validation: worker-thread capture memory regression passed; clang-format14 and staged diff checks passed. GitNexus change analysis was run but this inline class is absent from the index; direct source diff remains limited to capture memory admission and its regression.
platform/linux
Linux-specific platform implementations.
This layer now holds the shared Linux-safe slice for Cardputer Zero, plus Pi-specific platform adapters.
platform/linux/common: code that is safe to share between simulator and Pi OS device shellsplatform/linux/rpi: Pi OS / framebuffer specific platform adapters
Keep simulator-only presentation and desktop tooling in apps/linux_sim, and
keep device shell ownership in apps/linux_rpi.
For real Cardputer Zero hardware bring-up, prefer M5Stack_Linux_Libs for the
device-facing LVGL and driver path. Treat platform/linux/rpi as the place for
Trail Mate specific Linux adapters that remain necessary after the SDK takes
care of the generic hardware plumbing.