Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Fix definition of SYCALL_ARG_PTR



details:   https://anonhg.NetBSD.org/src/rev/e8c750486cc4
branches:  trunk
changeset: 326522:e8c750486cc4
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Feb 01 09:04:57 2014 +0000

description:
Fix definition of SYCALL_ARG_PTR
Add SYCALL_ARG_PTR_P(sy)

diffstat:

 sys/sys/systm.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 4944952fb6c5 -r e8c750486cc4 sys/sys/systm.h
--- a/sys/sys/systm.h   Sat Feb 01 08:05:51 2014 +0000
+++ b/sys/sys/systm.h   Sat Feb 01 09:04:57 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: systm.h,v 1.259 2013/10/26 18:31:29 matt Exp $ */
+/*     $NetBSD: systm.h,v 1.260 2014/02/01 09:04:57 matt Exp $ */
 
 /*-
  * Copyright (c) 1982, 1988, 1991, 1993
@@ -142,10 +142,11 @@
 #define SYCALL_ARG6_64  0x0800000
 #define SYCALL_ARG7_64  0x1000000
 #define SYCALL_NOSYS    0x2000000 /* permanent nosys in sysent[] */
-#define        SYCALL_ARG_PTR  0x3000000 /* at least one argument is a pointer */
+#define        SYCALL_ARG_PTR  0x4000000 /* at least one argument is a pointer */
 #define SYCALL_RET_64_P(sy)    ((sy)->sy_flags & SYCALL_RET_64)
 #define SYCALL_ARG_64_P(sy, n) ((sy)->sy_flags & (SYCALL_ARG0_64 << (n)))
 #define        SYCALL_ARG_64_MASK(sy)  (((sy)->sy_flags >> 17) & 0xff)
+#define        SYCALL_ARG_PTR_P(sy)    ((sy)->sy_flags & SYCALL_ARG_PTR)
 #define        SYCALL_NARGS64(sy)      (((sy)->sy_flags >> 12) & 0x0f)
 #define        SYCALL_NARGS64_VAL(n)   ((n) << 12)
 



Home | Main Index | Thread Index | Old Index