Move CS_SECURE() and EFL_SECURE() macros to the machine/frame.h. They

are useful for most implementations of sendsig().

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
kib 2015-06-29 10:35:00 +00:00
parent d80f211ea6
commit 67042ee442
2 changed files with 8 additions and 3 deletions

View File

@ -166,9 +166,6 @@ CTASSERT(offsetof(struct pcpu, pc_curthread) == 0);
extern register_t init386(int first);
extern void dblfault_handler(void);
#define CS_SECURE(cs) (ISPL(cs) == SEL_UPL)
#define EFL_SECURE(ef, oef) ((((ef) ^ (oef)) & ~PSL_USERCHANGE) == 0)
#if !defined(CPU_DISABLE_SSE) && defined(I686_CPU)
#define CPU_ENABLE_SSE
#endif

View File

@ -4,3 +4,11 @@
/* $FreeBSD$ */
#include <x86/frame.h>
#ifndef __I386_FRAME_H__
#define __i386_FRAME_H__
#define CS_SECURE(cs) (ISPL(cs) == SEL_UPL)
#define EFL_SECURE(ef, oef) ((((ef) ^ (oef)) & ~PSL_USERCHANGE) == 0)
#endif