From e743fb99b17d5895af06889b2c71fa035a83f2cc Mon Sep 17 00:00:00 2001 From: Steve Passe Date: Sat, 19 Jul 1997 02:24:37 +0000 Subject: [PATCH] Increased NIDT to 256 for case of SMP or APIC_IO. --- sys/amd64/include/segments.h | 6 +++++- sys/i386/include/segments.h | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/sys/amd64/include/segments.h b/sys/amd64/include/segments.h index e1e6b4684c91..a5799d3c501e 100644 --- a/sys/amd64/include/segments.h +++ b/sys/amd64/include/segments.h @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)segments.h 7.1 (Berkeley) 5/9/91 - * $Id: segments.h,v 1.13 1997/02/22 09:35:09 peter Exp $ + * $Id: segments.h,v 1.1 1997/07/19 01:32:04 smp Exp smp $ */ #ifndef _MACHINE_SEGMENTS_H_ @@ -194,7 +194,11 @@ struct region_descriptor { * Size of IDT table */ +#if defined(SMP) || defined(APIC_IO) +#define NIDT 256 /* we use them all */ +#else #define NIDT 129 /* 32 reserved, 16 h/w, 0 s/w, linux's 0x80 */ +#endif /* SMP || APIC_IO */ #define NRSVIDT 32 /* reserved entries for cpu exceptions */ /* diff --git a/sys/i386/include/segments.h b/sys/i386/include/segments.h index e1e6b4684c91..a5799d3c501e 100644 --- a/sys/i386/include/segments.h +++ b/sys/i386/include/segments.h @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)segments.h 7.1 (Berkeley) 5/9/91 - * $Id: segments.h,v 1.13 1997/02/22 09:35:09 peter Exp $ + * $Id: segments.h,v 1.1 1997/07/19 01:32:04 smp Exp smp $ */ #ifndef _MACHINE_SEGMENTS_H_ @@ -194,7 +194,11 @@ struct region_descriptor { * Size of IDT table */ +#if defined(SMP) || defined(APIC_IO) +#define NIDT 256 /* we use them all */ +#else #define NIDT 129 /* 32 reserved, 16 h/w, 0 s/w, linux's 0x80 */ +#endif /* SMP || APIC_IO */ #define NRSVIDT 32 /* reserved entries for cpu exceptions */ /*