summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2001-05-12 22:54:53 +0000
committerdeischen <deischen@FreeBSD.org>2001-05-12 22:54:53 +0000
commitafa4f417dc4f12e6556fdd56f202e823306236ff (patch)
treec15105c3dd14b9c44c1f448e5311eb8283cd5d4a /sys/i386
parent13fb775e005b924d3e9911cd03a2420cb9670cc2 (diff)
downloadFreeBSD-src-afa4f417dc4f12e6556fdd56f202e823306236ff.zip
FreeBSD-src-afa4f417dc4f12e6556fdd56f202e823306236ff.tar.gz
Revert part of last commit. Instead of using %fs for KSD/TSD, we'll
follow Linux' convention and use %gs. This adds back the setting of %fs to a sane value in sendsig(). The value of %gs remains preserved to whatever it was in user context.
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/machdep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index a9bf55b..9a5148b 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -744,6 +744,7 @@ sendsig(catcher, sig, mask, code)
regs->tf_cs = _ucodesel;
regs->tf_ds = _udatasel;
regs->tf_es = _udatasel;
+ regs->tf_fs = _udatasel;
regs->tf_ss = _udatasel;
}
OpenPOWER on IntegriCloud