Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 May 2014 15:47:58 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r265324 - user/dchagin/lemul/sys/sys
Message-ID:  <201405041547.s44Flw6O048890@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405041547.s44Flw6O048890>