From e0224667fe353de8d6394686a4589a5a7935b6b2 Mon Sep 17 00:00:00 2001 From: charnier Date: Mon, 18 Aug 1997 06:58:59 +0000 Subject: Use CS_SECURE macro. Reviewed by: John Dyson --- sys/i386/include/cpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/i386/include/cpu.h') diff --git a/sys/i386/include/cpu.h b/sys/i386/include/cpu.h index 0aedc2a..8f07480 100644 --- a/sys/i386/include/cpu.h +++ b/sys/i386/include/cpu.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)cpu.h 5.4 (Berkeley) 5/9/91 - * $Id: cpu.h,v 1.29 1997/04/07 07:15:58 peter Exp $ + * $Id: cpu.h,v 1.30 1997/08/09 00:03:09 dyson Exp $ */ #ifndef _MACHINE_CPU_H_ @@ -59,7 +59,7 @@ #define cpu_set_init_frame(p, fp) ((p)->p_md.md_regs = (fp)) #define CLKF_USERMODE(framep) \ - ((ISPL((framep)->cf_cs) == SEL_UPL) || (framep->cf_eflags & PSL_VM)) + (CS_SECURE((framep)->cf_cs) || (framep->cf_eflags & PSL_VM)) #define CLKF_INTR(framep) (intr_nesting_level >= 2) #if 0 -- cgit v1.1