diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-03-01 16:12:13 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-03-01 16:12:13 +0000 |
commit | c8f4b6e5aee170d94fac99a133801982e84b6b12 (patch) | |
tree | 050717189c6fe3ed4081b78ec220b3c44afb35d5 /sys | |
parent | 1648c1cb8150310732056cb0f5cb01eb70b00d1c (diff) |
GCC 2.8 -Wall
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/alpha/alpha/vm_machdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/alpha/alpha/vm_machdep.c b/sys/arch/alpha/alpha/vm_machdep.c index f822a4f2c5b..101ba5edde0 100644 --- a/sys/arch/alpha/alpha/vm_machdep.c +++ b/sys/arch/alpha/alpha/vm_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_machdep.c,v 1.6 1997/01/24 19:56:47 niklas Exp $ */ +/* $OpenBSD: vm_machdep.c,v 1.7 1998/03/01 16:12:12 niklas Exp $ */ /* $NetBSD: vm_machdep.c,v 1.21 1996/11/13 21:13:15 cgd Exp $ */ /* @@ -70,14 +70,14 @@ cpu_coredump(p, vp, cred, chdr) cpustate.md_tf = *p->p_md.md_tf; cpustate.md_tf.tf_regs[FRAME_SP] = alpha_pal_rdusp(); /* XXX */ - if (p->p_md.md_flags & MDP_FPUSED) + if (p->p_md.md_flags & MDP_FPUSED) { if (p == fpcurproc) { alpha_pal_wrfen(1); savefpstate(&cpustate.md_fpstate); alpha_pal_wrfen(0); } else cpustate.md_fpstate = p->p_addr->u_pcb.pcb_fp; - else + } else bzero(&cpustate.md_fpstate, sizeof(cpustate.md_fpstate)); CORE_SETMAGIC(cseg, CORESEGMAGIC, MID_ALPHA, CORE_CPU); |