svn commit: r265324 - user/dchagin/lemul/sys/sys

Dmitry Chagin dchagin at FreeBSD.org
Sun May 4 15:47:59 UTC 2014


Author: dchagin
Date: Sun May  4 15:47:58 2014
New Revision: 265324
URL: http://svnweb.freebsd.org/changeset/base/265324

Log:
  Add instruction set mask for sv_flags field of struct sysentvec.

Modified:
  user/dchagin/lemul/sys/sys/sysent.h

Modified: user/dchagin/lemul/sys/sys/sysent.h
==============================================================================
--- user/dchagin/lemul/sys/sys/sysent.h	Sun May  4 15:35:04 2014	(r265323)
+++ user/dchagin/lemul/sys/sys/sysent.h	Sun May  4 15:47:58 2014	(r265324)
@@ -140,9 +140,11 @@ struct sysentvec {
 #define	SV_AOUT		0x008000
 #define	SV_SHP		0x010000
 
+#define	SV_IS_MASK	0x007f00
 #define	SV_ABI_MASK	0xff
 #define	SV_PROC_FLAG(p, x)	((p)->p_sysent->sv_flags & (x))
 #define	SV_PROC_ABI(p)		((p)->p_sysent->sv_flags & SV_ABI_MASK)
+#define	SV_PROC_IS(p)		((p)->p_sysent->sv_flags & SV_IS_MASK)
 #define	SV_CURPROC_FLAG(x)	SV_PROC_FLAG(curproc, x)
 #define	SV_CURPROC_ABI()	SV_PROC_ABI(curproc)
 /* same as ELFOSABI_XXX, to prevent header pollution */


More information about the svn-src-user mailing list