From 7e2c3175d713af0d7ce14182fc188a24df176d36 Mon Sep 17 00:00:00 2001 From: "Alfred M. Szmidt" Date: Sun, 28 Nov 2004 17:29:35 +0000 Subject: 2004-11-22 Guillem Jover * i386/i386/locore.S (discover_x86_cpu_type): Enable function. Enable ID flag for Cyrix CPU. Use %ebp to save the stack pointer. Restore EFLAGS just after its last usage. * i386/i386at/model_dep.c (c_boot_entry): Enable use of discover_x86_cpu_type. Remove hardcoded cpu_type assignment. * i386/include/mach/i386/eflags.h (EFL_VI, EFL_VIP): New bits. (EFL_AC, EFL_ID): Bits finally added. --- i386/include/mach/i386/eflags.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'i386/include') diff --git a/i386/include/mach/i386/eflags.h b/i386/include/mach/i386/eflags.h index 72bf9d4..336a73a 100644 --- a/i386/include/mach/i386/eflags.h +++ b/i386/include/mach/i386/eflags.h @@ -45,5 +45,9 @@ #define EFL_NT 0x00004000 /* nested task */ #define EFL_RF 0x00010000 /* resume without tracing */ #define EFL_VM 0x00020000 /* virtual 8086 mode */ +#define EFL_AC 0x00040000 /* alignment check */ +#define EFL_VI 0x00080000 /* virtual interrupt */ +#define EFL_VIP 0x00100000 /* virtual interrupt pending */ +#define EFL_ID 0x00200000 /* cpuid available */ #endif /* _MACH_I386_EFLAGS_H_ */ -- cgit v1.2.3