|
I'm trying to implement the "mmap" system call on Linux 64bit. I have the following code: I got the signature for "mmap" from the man pages. This code will work under C but it will throw a "segmentation fault" on Vox when I try to de-reference the pointer. Any ideas? |
Answered by
MrSmith33
Dec 3, 2021
Replies: 3 comments 6 replies
|
I tested in WSL and mmap returns |
4 replies
Answer selected by
rempas
|
ok, the stack layout was indeed wrong, but wasn't what cause the problem, it is codegen of |
2 replies
|
This is now fixed after the last commit! Thanks a lot for your amazing work!! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tested in WSL and mmap returns
0xffffffffffffffea (-22)for me