re: CVS commit: src/sys/rump/net/lib/libshmif

2011-03-11 Thread matthew green
> 11.03.2011, 12:26, "Antti Kantee" : > > Log Message: > > Don't assume rump kernel PAGE_SIZE and host page size are the same. > > Why can they be different? I asked myself this question when I was writing some platforms don't have a well defined PAGE_SIZE, like sparc. on some machines it is 4KB

Re: CVS commit: src/sys/rump/net/lib/libshmif

2011-03-11 Thread Antti Kantee
On Fri Mar 11 2011 at 20:37:47 +0300, Alexander Nasonov wrote: > 11.03.2011, 12:26, "Antti Kantee" : > > Log Message: > > Don't assume rump kernel PAGE_SIZE and host page size are the same. > > Why can they be different? I asked myself this question when I was writing For example on SPARC page si

Re: CVS commit: src/sys/rump/net/lib/libshmif

2011-03-11 Thread Alexander Nasonov
11.03.2011, 12:26, "Antti Kantee" : > Log Message: > Don't assume rump kernel PAGE_SIZE and host page size are the same. Why can they be different? I asked myself this question when I was writing a tests for kern/44310: write to /dev/bpf truncates size_t to int. In the end, I just used sysconf(_SC