From 10c90bba3b4d74f7638c4af8d06278d8bb96bd13 Mon Sep 17 00:00:00 2001 From: Daniel Eischen Date: Sat, 12 May 2001 22:54:53 +0000 Subject: 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. --- sys/amd64/amd64/machdep.c | 1 + sys/i386/i386/machdep.c | 1 + 2 files changed, 2 insertions(+) (limited to 'sys') diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index a9bf55bc4f95..9a5148b48480 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/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; } diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index a9bf55bc4f95..9a5148b48480 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; } -- cgit v1.3