Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amd64 Rename process_machdep_validxstate() to proce...



details:   https://anonhg.NetBSD.org/src/rev/6ac6179baed8
branches:  trunk
changeset: 465529:6ac6179baed8
user:      rin <rin%NetBSD.org@localhost>
date:      Wed Nov 27 09:08:14 2019 +0000

description:
Rename process_machdep_validxstate() to process_machdep_validfpu(), as
this function will be used to check validity of XMM registers also.

diffstat:

 sys/arch/amd64/amd64/process_machdep.c |  8 ++++----
 sys/arch/amd64/include/ptrace.h        |  4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 3f9be5b80279 -r 6ac6179baed8 sys/arch/amd64/amd64/process_machdep.c
--- a/sys/arch/amd64/amd64/process_machdep.c    Wed Nov 27 09:01:59 2019 +0000
+++ b/sys/arch/amd64/amd64/process_machdep.c    Wed Nov 27 09:08:14 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: process_machdep.c,v 1.45 2019/11/27 09:01:59 rin Exp $ */
+/*     $NetBSD: process_machdep.c,v 1.46 2019/11/27 09:08:14 rin Exp $ */
 
 /*
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -74,7 +74,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.45 2019/11/27 09:01:59 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.46 2019/11/27 09:08:14 rin Exp $");
 
 #include "opt_xen.h"
 #include <sys/param.h>
@@ -324,7 +324,7 @@
                /* FALLTHROUGH */
        case PT_GETXSTATE:
                /* write = false done above. */
-               if (!process_machdep_validxstate(lt->l_proc))
+               if (!process_machdep_validfpu(lt->l_proc))
                        return EINVAL;
                if (__predict_false(l->l_proc->p_flag & PK_32)) {
                        struct netbsd32_iovec user_iov;
@@ -404,7 +404,7 @@
 }
 
 int
-process_machdep_validxstate(struct proc *p)
+process_machdep_validfpu(struct proc *p)
 {
 
        if (p->p_flag & PK_SYSTEM)
diff -r 3f9be5b80279 -r 6ac6179baed8 sys/arch/amd64/include/ptrace.h
--- a/sys/arch/amd64/include/ptrace.h   Wed Nov 27 09:01:59 2019 +0000
+++ b/sys/arch/amd64/include/ptrace.h   Wed Nov 27 09:08:14 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ptrace.h,v 1.17 2019/11/27 08:56:00 rin Exp $  */
+/*     $NetBSD: ptrace.h,v 1.18 2019/11/27 09:08:14 rin Exp $  */
 
 /*
  * Copyright (c) 1993 Christopher G. Demetriou
@@ -88,7 +88,7 @@
        case PT_SETXSTATE:
 
 int process_machdep_doxstate(struct lwp *, struct lwp *, struct uio *);
-int process_machdep_validxstate(struct proc *);
+int process_machdep_validfpu(struct proc *);
 
 #endif /* _KERNEL */
 



Home | Main Index | Thread Index | Old Index