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:
parent
d80f211ea6
commit
67042ee442
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user