diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-10-12 19:30:29 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-10-12 19:30:29 +0000 |
commit | 297941ac5277643d9a3e1092a4c50cc031ca347f (patch) | |
tree | a4a9823841b7bb4114b7d0dba545b96393c5ea97 /sys/arch | |
parent | e6e9f649c76b23832327a41d370176af74719561 (diff) |
Remove commented out dead wrong FPU handling code in setregs().
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/m88k/m88k/m88k_machdep.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/sys/arch/m88k/m88k/m88k_machdep.c b/sys/arch/m88k/m88k/m88k_machdep.c index baa23a75a2e..6a0d5417e64 100644 --- a/sys/arch/m88k/m88k/m88k_machdep.c +++ b/sys/arch/m88k/m88k/m88k_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: m88k_machdep.c,v 1.5 2005/10/12 19:05:44 miod Exp $ */ +/* $OpenBSD: m88k_machdep.c,v 1.6 2005/10/12 19:30:28 miod Exp $ */ /* * Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -56,9 +56,6 @@ #include <machine/cmmu.h> #include <machine/cpu.h> #include <machine/cpu_number.h> -/* -#include <machine/locore.h> -*/ #include <machine/reg.h> #ifdef M88100 #include <machine/m88100.h> @@ -104,26 +101,6 @@ setregs(p, pack, stack, retval) * Point r2 to the stack. crt0 should extract envp from * argc & argv before calling user's main. */ -#if 0 - /* - * I don't think I need to mess with fpstate on 88k because - * we make sure the floating point pipeline is drained in - * the trap handlers. Should check on this later. XXX Nivas. - */ - if ((fs = p->p_md.md_fpstate) != NULL) { - /* - * We hold an FPU state. If we own *the* FPU chip state - * we must get rid of it, and the only way to do that is - * to save it. In any case, get rid of our FPU state. - */ - if (p == fpproc) { - savefpstate(fs); - fpproc = NULL; - } - free((void *)fs, M_SUBPROC); - p->p_md.md_fpstate = NULL; - } -#endif bzero((caddr_t)tf, sizeof *tf); |