On Tue, Nov 18, 2008 at 09:15:03AM +0300, Chagin Dmitry wrote: > thnx! tested at > dchagin# uname -a > FreeBSD dchagin.dialup.corbina.ru 8.0-CURRENT FreeBSD 8.0-CURRENT #28 > r185047: T > ue Nov 18 08:55:27 MSK 2008 [EMAIL PROTECTED]:/usr/obj/usr/loca > l/root/pub/head/sys/YOY amd64 Thanks, I will commit this after make universe finished.
> > +#define SV_ABI_MASK 0xff > > +#define SV_CURPROC_FLAG(x) (curproc->p_sysent->sv_flags & (x)) > > +#define SV_CURPROC_ABI() (curproc->p_sysent->sv_flags & SV_ABI_MASK) > > +/* same as ELFOSABI_XXX, to prevent header pollution */ > > +#define SV_ABI_LINUX 3 > > +#define SV_ABI_FREEBSD 9 > > +#define SV_ABI_UNDEF 255 > > + > > #ifdef _KERNEL > > extern struct sysentvec aout_sysvec; > > extern struct sysentvec elf_freebsd_sysvec; > > and what about target proc macro? Do you mean macros similar to SV_CURPROC_FLAG(x) and SV_CURPROC_ABI(), but for arbitrary proc ? ATM, it is not needed in the tree, I think. We will introduce them as needed.
pgpU24qeXbqWu.pgp
Description: PGP signature