From 90af01bef3ace62fb92ceb5a0b251180fd349621 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Fri, 27 Sep 1996 13:33:49 +0000 Subject: [PATCH] Apparently, BSDI have a new system call gate. I was experimenting with this quite a while ago when somebody reported a BSD/OS 2.1 binary that wouldn't run. I'm pretty sure they tried it and I'm pretty sure they mentioned to me that the patch worked. --- sys/amd64/include/segments.h | 5 +++-- sys/i386/include/segments.h | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/amd64/include/segments.h b/sys/amd64/include/segments.h index 5fadb985345b..69bdc772468f 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.9 1995/05/30 08:00:50 rgrimes Exp $ + * $Id: segments.h,v 1.10 1996/01/30 22:54:59 mpp Exp $ */ #ifndef _MACHINE_SEGMENTS_H_ @@ -228,7 +228,8 @@ struct region_descriptor { #define LUDATA_SEL 4 /* separate stack, es,fs,gs sels ? */ /* #define LPOSIXCALLS_SEL 5*/ /* notyet */ -#define NLDT (LUDATA_SEL + 1) +#define LBSDICALLS_SEL 16 /* BSDI system call gate */ +#define NLDT (LBSDICALLS_SEL + 1) #ifdef KERNEL extern int currentldt; diff --git a/sys/i386/include/segments.h b/sys/i386/include/segments.h index 5fadb985345b..69bdc772468f 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.9 1995/05/30 08:00:50 rgrimes Exp $ + * $Id: segments.h,v 1.10 1996/01/30 22:54:59 mpp Exp $ */ #ifndef _MACHINE_SEGMENTS_H_ @@ -228,7 +228,8 @@ struct region_descriptor { #define LUDATA_SEL 4 /* separate stack, es,fs,gs sels ? */ /* #define LPOSIXCALLS_SEL 5*/ /* notyet */ -#define NLDT (LUDATA_SEL + 1) +#define LBSDICALLS_SEL 16 /* BSDI system call gate */ +#define NLDT (LBSDICALLS_SEL + 1) #ifdef KERNEL extern int currentldt;