-
-
Save lovesegfault/625b287fa175b6f88ded34d0e84818c6 to your computer and use it in GitHub Desktop.
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
let map = unsafe { | |
libc::mmap( | |
std::ptr::null_mut(), | |
16 * 1024 * 1024, // FIXME: WHY? | |
PROT_READ | PROT_WRITE, | |
MAP_SHARED, | |
mem.as_raw_fd(), | |
(bcm_phys_addr + 4096) as i64, | |
) | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment