-/* $OpenBSD: machdep.h,v 1.6 1997/02/14 23:50:17 kstailey Exp $ */
+/* $OpenBSD: machdep.h,v 1.7 1997/04/05 20:22:02 kstailey Exp $ */
/*
* Copyright (c) 1994 Gordon W. Ross
* Copyright (c) 1993 Adam Glass
extern int cache_size;
extern int cold;
-extern int fpu_type;
+extern int fputype;
extern label_t *nofault;
-/* $OpenBSD: fpu.c,v 1.6 1997/01/16 04:04:20 kstailey Exp $ */
+/* $OpenBSD: fpu.c,v 1.7 1997/04/05 20:24:24 kstailey Exp $ */
/* $NetBSD: fpu.c,v 1.9 1996/11/20 18:57:29 gwr Exp $ */
/*-
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;
-/* $OpenBSD: locore.s,v 1.17 1997/02/20 06:30:03 kstailey Exp $ */
+/* $OpenBSD: locore.s,v 1.18 1997/04/05 20:22:01 kstailey Exp $ */
/* $NetBSD: locore.s,v 1.40 1996/11/06 20:19:54 cgd Exp $ */
/*
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
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?
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