VOGONS


First post, by asabjorn

User metadata
Rank Newbie
Rank
Newbie

Hi,

We are writing an emulator and need to allow mmap from address zero when emulating a testsuite. I talked with the wine guys and they said they use dosbox for programs that map from zero. I am seeking information about how you allow mmap from zero.

We only need 'mmap_zero' for a testsuite, emufuzzer, that tests our implementation of x86. Due to how the testsuite works it is not desirable to change the code to not require mmap_zero.

The current solution I am looking at,
sysctl -w vm.mmap_min_addr="0"
is not desirable since it open up mmap_zero system-wide.

Please let me know if you have any tips on how you allowed mmap_zero.

Best,
Andy

Reply 1 of 1, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

we haven't. We emulate the memory as well. DOSBox is a pc emulator. so we have no issues like this.

Water flows down the stream
How to ask questions the smart way!