NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: mmap and MAP_FIXED
Hello,
note to self: don't write emails before coffee.
> > int main() {
> > uintptr_t a = 0x4000000000000; // the address used by CLISP
> > uintptr_t e = 0xF000000000000;
> > size_t step = 0x10000000000;
> > for (; a < e; a += step) {
> > try_fixed((void *) a, 0x1000);
> > }
> > return 0;
> > }
... so size isn't the problem. I still wouldn't bet that the address
space is actually available though, and what is available will strongly
depend on the hardware in question. The above is probably for linux on
amd64.
have fun
Michael
Home |
Main Index |
Thread Index |
Old Index