[PATCH] Move MI bits out of MD linux.h

John Baldwin jhb at freebsd.org
Mon Jan 28 18:58:29 UTC 2013

On Monday, January 28, 2013 12:49:44 pm Chagin Dmitry wrote:
> On Mon, Jan 28, 2013 at 09:47:39AM -0500, John Baldwin wrote:
> > This patch attempts to reduce duplication between i386/linux/linux.h and 
> > amd64/linux32/linux.h by moving bits that are MI out into headers in 
> > compat/linux.  I only moved constants that were defined in MI headers in Linux 
> > itself, not necessarily all constants that have the same value.  Further 
> > reduction could be possible if we wanted to make a linux-i386.h that these two 
> > headers could share, but that would be a separate project.
> > 
> > http://www.FreeBSD.org/~jhb/patches/linux_mi.patch
> > 
> Hi, John!
> Looks ok to me, furthemore I have similar patches in the local x86_64 linuxulator
> repo. So, commit, please.

So do you have an open PR with patches for the 64-bit linux stuff?  I'd
like to look at what you have and see about getting it into the tree if
so.  I'm curious about how you handled things (e.g. do you recompile
things like linux_file.c twice once as 32-bit once as native, and do you
have linux32.ko for the existing module and linux.ko for 64-bit)?

John Baldwin

More information about the freebsd-emulation mailing list