Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // in the program that owns SHARED:
- far struct SharedVars volatile shmem __attribute__((location(0x10100))) = {};
- // in the program that doesn't own SHARED:
- #define shmem (*(struct SharedVars volatile *)0x10100)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement