Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/freebsd Revert previous. Instead change ufetch_...



details:   https://anonhg.NetBSD.org/src/rev/0ad61328791a
branches:  trunk
changeset: 455575:0ad61328791a
user:      kre <kre%NetBSD.org@localhost>
date:      Sat Apr 06 17:27:58 2019 +0000

description:
Revert previous.   Instead change ufetch_long() to ufetch_int() in
both calls (and also remove the cast on the earlier).

These replaced fuword, to fetch a register_t (ie: int).

diffstat:

 sys/compat/freebsd/freebsd_syscall.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r ea2fa8b4905f -r 0ad61328791a sys/compat/freebsd/freebsd_syscall.c
--- a/sys/compat/freebsd/freebsd_syscall.c      Sat Apr 06 16:25:52 2019 +0000
+++ b/sys/compat/freebsd/freebsd_syscall.c      Sat Apr 06 17:27:58 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: freebsd_syscall.c,v 1.4 2019/04/06 16:22:09 kre Exp $  */
+/*     $NetBSD: freebsd_syscall.c,v 1.5 2019/04/06 17:27:58 kre Exp $  */
 
 /*-
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: freebsd_syscall.c,v 1.4 2019/04/06 16:22:09 kre Exp $");
+__KERNEL_RCSID(0, "$NetBSD: freebsd_syscall.c,v 1.5 2019/04/06 17:27:58 kre Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -88,7 +88,7 @@
                /*
                 * Code is first argument, followed by actual args.
                 */
-               error = ufetch_long((void *)params, (u_long *)&code);
+               error = ufetch_int((void *)params, &code);
                if (error)
                        goto bad;
                params += sizeof(int);
@@ -98,9 +98,9 @@
                 * Like syscall, but code is a quad, so as to maintain
                 * quad alignment for the rest of the arguments.
                 */
-               error = ufetch_long((void *)(params +
+               error = ufetch_int((void *)(params +
                                             _QUAD_LOWWORD * sizeof(int)),
-                                   (u_long *)&code);
+                                   &code);
                if (error)
                        goto bad;
                params += sizeof(quad_t);



Home | Main Index | Thread Index | Old Index