tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: compat_netbsd32 swapctl



On Wed, Jan 29, 2014 at 01:40:42PM +0100, Emmanuel Dreyfus wrote:
> There is no way to discover the alignment used from within the code? I
> can only define a magic number?

You can find out how much the current compiler (amd64) aligns, but I
don't know of a way to find that out about the 32bit (i386) one.

My vote for this special case: hard code it #ifdef __x86_64__.
If we run into other instances, we can add a define (like: DEV_T_ALIGN_32).

Martin


Home | Main Index | Thread Index | Old Index