s/fpu_type/fputype/g
This commit is contained in:
parent
3c9709606d
commit
d531b1ed42
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sig_machdep.c,v 1.1 1997/03/13 19:14:35 gwr Exp $ */
|
||||
/* $NetBSD: sig_machdep.c,v 1.2 1997/03/17 19:03:11 gwr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -59,7 +59,7 @@
|
||||
#include <machine/cpu.h>
|
||||
#include <machine/reg.h>
|
||||
|
||||
extern int fpu_type;
|
||||
extern int fputype;
|
||||
extern short exframesize[];
|
||||
void m68881_save __P((struct fpframe *));
|
||||
void m68881_restore __P((struct fpframe *));
|
||||
@ -203,7 +203,7 @@ sendsig(catcher, sig, mask, code)
|
||||
#endif
|
||||
}
|
||||
|
||||
if (fpu_type) {
|
||||
if (fputype) {
|
||||
kfp->sf_state.ss_flags |= SS_FPSTATE;
|
||||
m68881_save(&kfp->sf_state.ss_fpstate);
|
||||
}
|
||||
@ -362,7 +362,7 @@ sys_sigreturn(p, v, retval)
|
||||
/*
|
||||
* Finally we restore the original FP context
|
||||
*/
|
||||
if (fpu_type && (flags & SS_FPSTATE))
|
||||
if (fputype && (flags & SS_FPSTATE))
|
||||
m68881_restore(&tstate.ss_fpstate);
|
||||
#ifdef DEBUG
|
||||
if ((sigdebug & SDB_FPSTATE) && *(char *)&tstate.ss_fpstate)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.h,v 1.5 1997/02/11 00:18:25 gwr Exp $ */
|
||||
/* $NetBSD: machdep.h,v 1.6 1997/03/17 19:03:15 gwr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Gordon W. Ross
|
||||
@ -81,7 +81,7 @@ struct trapframe;
|
||||
|
||||
extern int cache_size;
|
||||
extern int cold;
|
||||
extern int fpu_type;
|
||||
extern int fputype;
|
||||
|
||||
extern label_t *nofault;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: fpu.c,v 1.12 1997/01/27 20:43:55 gwr Exp $ */
|
||||
/* $NetBSD: fpu.c,v 1.13 1997/03/17 19:03:17 gwr Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||
@ -79,15 +79,15 @@ initfpu()
|
||||
enab_reg |= SYSTEM_ENAB_FPP;
|
||||
set_control_byte((char *) SYSTEM_ENAB, enab_reg);
|
||||
|
||||
fpu_type = fpu_probe();
|
||||
if ((0 <= fpu_type) && (fpu_type <= 2))
|
||||
descr = fpu_descr[fpu_type];
|
||||
fputype = fpu_probe();
|
||||
if ((0 <= fputype) && (fputype <= 2))
|
||||
descr = fpu_descr[fputype];
|
||||
else
|
||||
descr = "unknown type";
|
||||
|
||||
printf("fpu: %s\n", descr);
|
||||
|
||||
if (fpu_type == 0) {
|
||||
if (fputype == 0) {
|
||||
/* Might as well turn the enable bit back off. */
|
||||
enab_reg = get_control_byte((char *) SYSTEM_ENAB);
|
||||
enab_reg &= ~SYSTEM_ENAB_FPP;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: locore.s,v 1.47 1997/03/16 11:05:12 thorpej Exp $ */
|
||||
/* $NetBSD: locore.s,v 1.48 1997/03/17 19:03:19 gwr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995 Gordon W. Ross
|
||||
@ -965,7 +965,7 @@ Lsw2:
|
||||
movl usp,a2 | grab USP (a2 has been saved)
|
||||
movl a2,a1@(PCB_USP) | and save it
|
||||
|
||||
tstl _fpu_type | Do we have an fpu?
|
||||
tstl _fputype | Do we have an fpu?
|
||||
jeq Lswnofpsave | No? Then don't try save.
|
||||
lea a1@(PCB_FPCTX),a2 | pointer to FP save area
|
||||
fsave a2@ | save FP state
|
||||
@ -1026,7 +1026,7 @@ Lswnofpsave:
|
||||
movl a1@(PCB_USP),a0
|
||||
movl a0,usp | and USP
|
||||
|
||||
tstl _fpu_type | If we don't have an fpu,
|
||||
tstl _fputype | If we don't have an fpu,
|
||||
jeq Lres_skip | don't try to restore it.
|
||||
lea a1@(PCB_FPCTX),a0 | pointer to FP save area
|
||||
tstb a0@ | null state frame?
|
||||
@ -1056,7 +1056,7 @@ ENTRY(savectx)
|
||||
movl a0,a1@(PCB_USP) | and save it
|
||||
moveml #0xFCFC,a1@(PCB_REGS) | save non-scratch registers
|
||||
|
||||
tstl _fpu_type | Do we have FPU?
|
||||
tstl _fputype | Do we have FPU?
|
||||
jeq Lsavedone | No? Then don't save state.
|
||||
lea a1@(PCB_FPCTX),a0 | pointer to FP save area
|
||||
fsave a0@ | save FP state
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.86 1997/02/18 15:53:15 gwr Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.87 1997/03/17 19:03:21 gwr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995 Gordon W. Ross
|
||||
@ -105,7 +105,7 @@ extern char kernel_text[];
|
||||
extern char etext[];
|
||||
|
||||
int physmem;
|
||||
int fpu_type;
|
||||
int fputype;
|
||||
int msgbufmapped;
|
||||
|
||||
vm_offset_t vmmap;
|
||||
@ -401,7 +401,7 @@ setregs(p, pack, stack, retval)
|
||||
|
||||
/* restore a null state frame */
|
||||
p->p_addr->u_pcb.pcb_fpregs.fpf_null = 0;
|
||||
if (fpu_type) {
|
||||
if (fputype) {
|
||||
m68881_restore(&p->p_addr->u_pcb.pcb_fpregs);
|
||||
}
|
||||
p->p_md.md_flags = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.h,v 1.5 1997/02/11 00:18:25 gwr Exp $ */
|
||||
/* $NetBSD: machdep.h,v 1.6 1997/03/17 19:03:15 gwr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Gordon W. Ross
|
||||
@ -81,7 +81,7 @@ struct trapframe;
|
||||
|
||||
extern int cache_size;
|
||||
extern int cold;
|
||||
extern int fpu_type;
|
||||
extern int fputype;
|
||||
|
||||
extern label_t *nofault;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vm_machdep.c,v 1.37 1997/01/24 00:09:35 gwr Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.38 1997/03/17 19:03:24 gwr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995 Gordon W. Ross
|
||||
@ -63,8 +63,6 @@
|
||||
#include <machine/pmap.h>
|
||||
#include <machine/machdep.h>
|
||||
|
||||
extern int fpu_type;
|
||||
|
||||
extern void proc_do_uret __P((void));
|
||||
extern void proc_trampoline __P((void));
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: locore.s,v 1.12 1997/03/16 11:05:16 thorpej Exp $ */
|
||||
/* $NetBSD: locore.s,v 1.13 1997/03/17 19:03:32 gwr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -985,7 +985,7 @@ Lsw2:
|
||||
movl usp,a2 | grab USP (a2 has been saved)
|
||||
movl a2,a1@(PCB_USP) | and save it
|
||||
|
||||
tstl _fpu_type | Do we have an fpu?
|
||||
tstl _fputype | Do we have an fpu?
|
||||
jeq Lswnofpsave | No? Then don't try save.
|
||||
lea a1@(PCB_FPCTX),a2 | pointer to FP save area
|
||||
fsave a2@ | save FP state
|
||||
@ -1055,7 +1055,7 @@ Lsame_mmuctx:
|
||||
movl a1@(PCB_USP),a0
|
||||
movl a0,usp | and USP
|
||||
|
||||
tstl _fpu_type | If we don't have an fpu,
|
||||
tstl _fputype | If we don't have an fpu,
|
||||
jeq Lres_skip | don't try to restore it.
|
||||
lea a1@(PCB_FPCTX),a0 | pointer to FP save area
|
||||
tstb a0@ | null state frame?
|
||||
@ -1085,7 +1085,7 @@ ENTRY(savectx)
|
||||
movl a0,a1@(PCB_USP) | and save it
|
||||
moveml #0xFCFC,a1@(PCB_REGS) | save non-scratch registers
|
||||
|
||||
tstl _fpu_type | Do we have FPU?
|
||||
tstl _fputype | Do we have FPU?
|
||||
jeq Lsavedone | No? Then don't save state.
|
||||
lea a1@(PCB_FPCTX),a0 | pointer to FP save area
|
||||
fsave a0@ | save FP state
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.8 1997/02/18 15:54:53 gwr Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.9 1997/03/17 19:03:35 gwr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -103,7 +103,7 @@ extern char kernel_text[];
|
||||
extern char etext[];
|
||||
|
||||
int physmem;
|
||||
int fpu_type;
|
||||
int fputype;
|
||||
int msgbufmapped;
|
||||
|
||||
vm_offset_t vmmap;
|
||||
@ -399,7 +399,7 @@ setregs(p, pack, stack, retval)
|
||||
|
||||
/* restore a null state frame */
|
||||
p->p_addr->u_pcb.pcb_fpregs.fpf_null = 0;
|
||||
if (fpu_type) {
|
||||
if (fputype) {
|
||||
m68881_restore(&p->p_addr->u_pcb.pcb_fpregs);
|
||||
}
|
||||
p->p_md.md_flags = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.h,v 1.7 1997/02/11 00:56:08 gwr Exp $ */
|
||||
/* $NetBSD: machdep.h,v 1.8 1997/03/17 19:03:27 gwr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Gordon W. Ross
|
||||
@ -95,7 +95,7 @@ struct reg;
|
||||
struct trapframe;
|
||||
|
||||
extern int cold;
|
||||
extern int fpu_type;
|
||||
extern int fputype;
|
||||
extern int has_iocache;
|
||||
|
||||
/* This is set by locore.s with the monitor's root ptr. */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: fpu.c,v 1.2 1997/01/23 22:44:46 gwr Exp $ */
|
||||
/* $NetBSD: fpu.c,v 1.3 1997/03/17 19:03:30 gwr Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||
@ -76,15 +76,15 @@ initfpu()
|
||||
/* Set the FPU bit in the "system enable register" */
|
||||
*enable_reg |= ENA_FPP;
|
||||
|
||||
fpu_type = fpu_probe();
|
||||
if ((0 <= fpu_type) && (fpu_type <= 2))
|
||||
descr = fpu_descr[fpu_type];
|
||||
fputype = fpu_probe();
|
||||
if ((0 <= fputype) && (fputype <= 2))
|
||||
descr = fpu_descr[fputype];
|
||||
else
|
||||
descr = "unknown type";
|
||||
|
||||
printf("fpu: %s\n", descr);
|
||||
|
||||
if (fpu_type == 0) {
|
||||
if (fputype == 0) {
|
||||
/* Might as well turn the enable bit back off. */
|
||||
*enable_reg &= ~ENA_FPP;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: locore.s,v 1.12 1997/03/16 11:05:16 thorpej Exp $ */
|
||||
/* $NetBSD: locore.s,v 1.13 1997/03/17 19:03:32 gwr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -985,7 +985,7 @@ Lsw2:
|
||||
movl usp,a2 | grab USP (a2 has been saved)
|
||||
movl a2,a1@(PCB_USP) | and save it
|
||||
|
||||
tstl _fpu_type | Do we have an fpu?
|
||||
tstl _fputype | Do we have an fpu?
|
||||
jeq Lswnofpsave | No? Then don't try save.
|
||||
lea a1@(PCB_FPCTX),a2 | pointer to FP save area
|
||||
fsave a2@ | save FP state
|
||||
@ -1055,7 +1055,7 @@ Lsame_mmuctx:
|
||||
movl a1@(PCB_USP),a0
|
||||
movl a0,usp | and USP
|
||||
|
||||
tstl _fpu_type | If we don't have an fpu,
|
||||
tstl _fputype | If we don't have an fpu,
|
||||
jeq Lres_skip | don't try to restore it.
|
||||
lea a1@(PCB_FPCTX),a0 | pointer to FP save area
|
||||
tstb a0@ | null state frame?
|
||||
@ -1085,7 +1085,7 @@ ENTRY(savectx)
|
||||
movl a0,a1@(PCB_USP) | and save it
|
||||
moveml #0xFCFC,a1@(PCB_REGS) | save non-scratch registers
|
||||
|
||||
tstl _fpu_type | Do we have FPU?
|
||||
tstl _fputype | Do we have FPU?
|
||||
jeq Lsavedone | No? Then don't save state.
|
||||
lea a1@(PCB_FPCTX),a0 | pointer to FP save area
|
||||
fsave a0@ | save FP state
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.8 1997/02/18 15:54:53 gwr Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.9 1997/03/17 19:03:35 gwr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -103,7 +103,7 @@ extern char kernel_text[];
|
||||
extern char etext[];
|
||||
|
||||
int physmem;
|
||||
int fpu_type;
|
||||
int fputype;
|
||||
int msgbufmapped;
|
||||
|
||||
vm_offset_t vmmap;
|
||||
@ -399,7 +399,7 @@ setregs(p, pack, stack, retval)
|
||||
|
||||
/* restore a null state frame */
|
||||
p->p_addr->u_pcb.pcb_fpregs.fpf_null = 0;
|
||||
if (fpu_type) {
|
||||
if (fputype) {
|
||||
m68881_restore(&p->p_addr->u_pcb.pcb_fpregs);
|
||||
}
|
||||
p->p_md.md_flags = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user