diff options
Diffstat (limited to 'sys/i386/include/frame.h')
-rw-r--r-- | sys/i386/include/frame.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/i386/include/frame.h b/sys/i386/include/frame.h index 0953be7..150ea20 100644 --- a/sys/i386/include/frame.h +++ b/sys/i386/include/frame.h @@ -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 |