aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/i386/ptrace_machdep.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2017-02-03 12:51:40 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2017-02-03 12:51:40 +0000
commit57f6622f92bd72f8dd00ef76ca63a9bc909d7d49 (patch)
tree8e78ce819dead203b413f784eddbc2de25598390 /sys/i386/i386/ptrace_machdep.c
parent5b50ed80434233154dcdf40364b76c1491e668b8 (diff)
downloadsrc-57f6622f92bd72f8dd00ef76ca63a9bc909d7d49.tar.gz
src-57f6622f92bd72f8dd00ef76ca63a9bc909d7d49.zip
For i386, remove config options CPU_DISABLE_CMPXCHG, CPU_DISABLE_SSE
and device npx. This means that FPU is always initialized and handled when available, and SSE+ register file and exception are handled when available. This makes the kernel FPU code much easier to maintain by the cost of slight bloat for CPUs older than 25 years. CPU_DISABLE_CMPXCHG outlived its usefulness, see the removed comment explaining the original purpose. Suggested by and discussed with: bde Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 3 weeks
Notes
Notes: svn path=/head/; revision=313154
Diffstat (limited to 'sys/i386/i386/ptrace_machdep.c')
-rw-r--r--sys/i386/i386/ptrace_machdep.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/sys/i386/i386/ptrace_machdep.c b/sys/i386/i386/ptrace_machdep.c
index 12bafe55e16c..7ab685c5ea35 100644
--- a/sys/i386/i386/ptrace_machdep.c
+++ b/sys/i386/i386/ptrace_machdep.c
@@ -39,11 +39,6 @@ __FBSDID("$FreeBSD$");
#include <machine/md_var.h>
#include <machine/pcb.h>
-#if !defined(CPU_DISABLE_SSE) && defined(I686_CPU)
-#define CPU_ENABLE_SSE
-#endif
-
-#ifdef CPU_ENABLE_SSE
static int
cpu_ptrace_xstate(struct thread *td, int req, void *addr, int data)
{
@@ -114,12 +109,10 @@ cpu_ptrace_xstate(struct thread *td, int req, void *addr, int data)
return (error);
}
-#endif
static int
cpu_ptrace_xmm(struct thread *td, int req, void *addr, int data)
{
-#ifdef CPU_ENABLE_SSE
struct savexmm *fpstate;
int error;
@@ -152,9 +145,6 @@ cpu_ptrace_xmm(struct thread *td, int req, void *addr, int data)
}
return (error);
-#else
- return (EINVAL);
-#endif
}
int