-
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? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
I tested in WSL and mmap returns |
Beta Was this translation helpful? Give feedback.
-
ok, the stack layout was indeed wrong, but wasn't what cause the problem, it is codegen of |
Beta Was this translation helpful? Give feedback.
-
This is now fixed after the last commit! Thanks a lot for your amazing work!! |
Beta Was this translation helpful? Give feedback.
I tested in WSL and mmap returns
0xffffffffffffffea (-22)
for me