From b85c313a62c8d6d007fdcceeb980e40ad2e5385e Mon Sep 17 00:00:00 2001 From: Daniel Eischen Date: Sat, 12 May 2001 03:23:10 +0000 Subject: [PATCH] Preserve the state of the %gs register when setting up the signal handler in Linux emulation. According to bde, this is what Linux does. Recent versions of linuxthreads use %gs for thread-specific data, while FreeBSD uses %fs (mostly because WINE uses %gs). Tested by: drew --- sys/i386/linux/linux_sysvec.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c index e461eab33f7..13c29f8e4e1 100644 --- a/sys/i386/linux/linux_sysvec.c +++ b/sys/i386/linux/linux_sysvec.c @@ -339,7 +339,6 @@ linux_rt_sendsig(sig_t catcher, int sig, sigset_t *mask, u_long code) regs->tf_ds = _udatasel; regs->tf_es = _udatasel; regs->tf_fs = _udatasel; - load_gs(_udatasel); regs->tf_ss = _udatasel; } @@ -473,7 +472,6 @@ linux_sendsig(sig_t catcher, int sig, sigset_t *mask, u_long code) regs->tf_ds = _udatasel; regs->tf_es = _udatasel; regs->tf_fs = _udatasel; - load_gs(_udatasel); regs->tf_ss = _udatasel; }