Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Zero out the buffer entirely.
details: https://anonhg.NetBSD.org/src/rev/64252242a6d5
branches: trunk
changeset: 357218:64252242a6d5
user: maxv <maxv%NetBSD.org@localhost>
date: Tue Oct 31 18:23:29 2017 +0000
description:
Zero out the buffer entirely.
diffstat:
sys/arch/x86/x86/fpu.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 22ee1dac94ac -r 64252242a6d5 sys/arch/x86/x86/fpu.c
--- a/sys/arch/x86/x86/fpu.c Tue Oct 31 18:13:37 2017 +0000
+++ b/sys/arch/x86/x86/fpu.c Tue Oct 31 18:23:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu.c,v 1.19 2017/10/31 18:13:37 maxv Exp $ */
+/* $NetBSD: fpu.c,v 1.20 2017/10/31 18:23:29 maxv Exp $ */
/*
* Copyright (c) 2008 The NetBSD Foundation, Inc. All
@@ -96,7 +96,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu.c,v 1.19 2017/10/31 18:13:37 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu.c,v 1.20 2017/10/31 18:23:29 maxv Exp $");
#include "opt_multiprocessor.h"
@@ -645,7 +645,7 @@
fpu_save = process_fpframe(l);
if (i386_use_fxsave) {
- memset(fpregs, 0, 12);
+ memset(fpregs, 0, sizeof(*fpregs));
process_xmm_to_s87(&fpu_save->sv_xmm, fpregs);
} else {
memcpy(fpregs, &fpu_save->sv_87, sizeof(fpu_save->sv_87));
Home |
Main Index |
Thread Index |
Old Index