diff options
author | peter <peter@FreeBSD.org> | 1996-09-27 13:33:49 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-09-27 13:33:49 +0000 |
commit | 9a03ada005a1eb7f3f3b714946b21a5e95488bd6 (patch) | |
tree | 15abbe44ca8597560d5cb0fc226a8c6362dc6aad | |
parent | 98dc36f7165b3ddbca44bcd34e0e342105e336c4 (diff) | |
download | FreeBSD-src-9a03ada005a1eb7f3f3b714946b21a5e95488bd6.zip FreeBSD-src-9a03ada005a1eb7f3f3b714946b21a5e95488bd6.tar.gz |
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.
-rw-r--r-- | sys/amd64/include/segments.h | 5 | ||||
-rw-r--r-- | 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 5fadb98..69bdc77 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 5fadb98..69bdc77 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; |