On Thu, Mar 26, 2009 at 10:21:49PM +0000, Andrew Doran wrote: > On Fri, Mar 27, 2009 at 09:14:40AM +1100, Simon Burge wrote: > > > +#ifdef __NetBSD__ > > +#include <uvm/uvm.h> > > +#define btop(x) ((x) * PAGE_SIZE) > > [ ... ] > > > > Isn't that working out "pages to bytes" and not "bytes to pages" ? > > > > Unless btop() means something non-obvious in Solaris land... > > Probably, please fix ;-)
By the way, this is basically the tarball that I posted to tech-kern in January: it doesn't work yet. Interest has been expressed in finishing it.