Source-Changes-HG archive

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

[src/trunk]: src/sys/arch don't expose register_t



details:   https://anonhg.NetBSD.org/src/rev/ccf46df2e9d5
branches:  trunk
changeset: 957635:ccf46df2e9d5
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Dec 06 02:23:12 2020 +0000

description:
don't expose register_t

diffstat:

 sys/arch/sparc/include/proc.h   |  4 ++--
 sys/arch/sparc/include/types.h  |  5 +++--
 sys/arch/sparc64/include/proc.h |  4 ++--
 3 files changed, 7 insertions(+), 6 deletions(-)

diffs (57 lines):

diff -r 392e28f05b90 -r ccf46df2e9d5 sys/arch/sparc/include/proc.h
--- a/sys/arch/sparc/include/proc.h     Sat Dec 05 23:02:25 2020 +0000
+++ b/sys/arch/sparc/include/proc.h     Sun Dec 06 02:23:12 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: proc.h,v 1.19 2011/01/14 02:06:31 rmind Exp $ */
+/*     $NetBSD: proc.h,v 1.20 2020/12/06 02:23:12 christos Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -53,7 +53,7 @@
 };
 
 struct mdproc {
-       void    (*md_syscall)(register_t, struct trapframe *, register_t);
+       void    (*md_syscall)(__register_t, struct trapframe *, __register_t);
        u_long  md_flags;
 };
 
diff -r 392e28f05b90 -r ccf46df2e9d5 sys/arch/sparc/include/types.h
--- a/sys/arch/sparc/include/types.h    Sat Dec 05 23:02:25 2020 +0000
+++ b/sys/arch/sparc/include/types.h    Sun Dec 06 02:23:12 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: types.h,v 1.68 2020/05/17 06:30:44 martin Exp $ */
+/*     $NetBSD: types.h,v 1.69 2020/12/06 02:23:12 christos Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -57,9 +57,10 @@
 #include <sys/featuretest.h>
 #include <machine/int_types.h>
 
+typedef unsigned long int      __register_t;
 /* The following are unsigned to prevent annoying sign extended pointers. */
 #if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
-typedef unsigned long int      register_t;
+typedef __register_t           register_t;
 #define        PRIxREGISTER            "lx"
 typedef unsigned int           register32_t;
 #define        PRIxREGISTER32          "x"
diff -r 392e28f05b90 -r ccf46df2e9d5 sys/arch/sparc64/include/proc.h
--- a/sys/arch/sparc64/include/proc.h   Sat Dec 05 23:02:25 2020 +0000
+++ b/sys/arch/sparc64/include/proc.h   Sun Dec 06 02:23:12 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: proc.h,v 1.16 2016/05/22 01:09:09 christos Exp $ */
+/*     $NetBSD: proc.h,v 1.17 2020/12/06 02:23:12 christos Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -51,7 +51,7 @@
  * Machine-dependent part of the proc structure for SPARC.
  */
 struct mdproc {
-       void    (*md_syscall)(struct trapframe64 *, register_t, register_t);
+       void    (*md_syscall)(struct trapframe64 *, __register_t, __register_t);
        u_long  md_flags;
 };
 



Home | Main Index | Thread Index | Old Index