From ab0df696d09f6b53b33345d207f8aead63a6fcab Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 5 Aug 1998 15:15:46 +0000 Subject: Automatic CPU type detection code from Eric Valette . Enabled on the pc386. --- c/src/lib/libcpu/i386/cpu.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'c/src/lib/libcpu/i386/cpu.h') diff --git a/c/src/lib/libcpu/i386/cpu.h b/c/src/lib/libcpu/i386/cpu.h index cded552740..be25929a0e 100644 --- a/c/src/lib/libcpu/i386/cpu.h +++ b/c/src/lib/libcpu/i386/cpu.h @@ -18,8 +18,11 @@ * $Id$ */ -#ifndef _i386_CPU_H -#define _i386_CPU_H +#ifndef _LIBCPU_i386_CPU_H +#define _LIBCPU_i386_CPU_H + +#include + #ifndef ASM @@ -63,7 +66,7 @@ : "=r" ((_eflags)) : "0" ((_eflags)) \ ); \ \ - _level = (_eflags & 0x0200) ? 0 : 1; \ + _level = (_eflags & EFLAGS_INTR_ENABLE) ? 0 : 1; \ } while (0) #define _CPU_ISR_Disable( _level ) i386_disable_interrupts( _level ) -- cgit v1.2.3