Instantly share code, notes, and snippets.

Embedded systems software engineering
- SF Bay Area
- 22:11
(UTC -07:00) - https://jlorelli.xyz
JJL772 /kernel-warnings.cpp
CreatedDecember 5, 2024 02:27
Code to reproduce the write-back/uncache-minus memory mismatch in aes-stream-drivers This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
#include"getopt.h" | |
#include<stdlib.h> | |
#include<stdio.h> | |
#include<string.h> | |
#include"DmaDriver.h" | |
#defineAXI_VERSION_OFFSET0x20000 |
For all examples, we will be using/epics
as the root directory for the EPICS install. Please substitute with your own directory.
- Complete EPICS documentation can be found here:https://docs.epics-controls.org/en/latest/
- Documentation about the EPICS build system:https://docs.epics-controls.org/en/latest/build-system/specifications.html
- EPICS base:https://github.com/epics-base
- EPICS modules:https://github.com/epics-modules
JJL772 /device-versions.md
CreatedJune 16, 2023 01:03
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
addonsystem: | |
- handle mounting/unmounting of addons | |
- download/upload of UGC files | |
- mounting/unmounting of games too? |
JJL772 /game-rules.md
Last activeJanuary 8, 2023 18:11
JJL772 /mimalloc-stub.c
Last activeJuly 15, 2022 00:22
Tiny library to override reallocarray for valgrind This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
// Compile with: gcc -o libmimalloc-proxy.so -shared mimalloc-stub.c | |
#include<stdlib.h> | |
#include<stddef.h> | |
void*reallocarray(void*ptr,size_tnmemb,size_tsize) { | |
returnrealloc(ptr,nmemb*size); | |
} |
JJL772 /run-with-zink.txt
CreatedJune 13, 2022 02:24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
__GLX_VENDOR_LIBRARY_NAME=mesa MESA_LOADER_DRIVER_OVERRIDE=zink GALLIUM_DRIVER=zink |
JJL772 /useful-debug-commands.md
CreatedApril 19, 2022 05:38
Useful debug commands for p2ce/momentumNewerOlder