Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/sys This code is used in 32 bit arm emulations so...



details:   https://anonhg.NetBSD.org/src/rev/3480afca5271
branches:  trunk
changeset: 452369:3480afca5271
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jun 30 14:37:33 2019 +0000

description:
This code is used in 32 bit arm emulations so always expose the stack32_t
and the 32 bit machine context structure definition and types.

diffstat:

 sys/compat/sys/sigtypes.h |  6 +++---
 sys/compat/sys/ucontext.h |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (53 lines):

diff -r b669356e3468 -r 3480afca5271 sys/compat/sys/sigtypes.h
--- a/sys/compat/sys/sigtypes.h Sun Jun 30 13:30:15 2019 +0000
+++ b/sys/compat/sys/sigtypes.h Sun Jun 30 14:37:33 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sigtypes.h,v 1.3 2019/06/27 01:58:49 christos Exp $    */
+/*     $NetBSD: sigtypes.h,v 1.4 2019/06/30 14:37:33 christos Exp $    */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -63,7 +63,7 @@
 
 #endif /* _POSIX_C_SOURCE || _XOPEN_SOURCE || ... */
 
-#if defined(_LP64) && defined(_KERNEL)
+#ifdef _KERNEL
 
 struct __sigaltstack32 {
        uint32_t        ss_sp;
@@ -73,7 +73,7 @@
 
 typedef struct __sigaltstack32 stack32_t;
 
-#endif /* _LP64 && _KERNEL */
+#endif /* _KERNEL */
 
 
 #endif /* !_COMPAT_SYS_SIGTYPES_H_ */
diff -r b669356e3468 -r 3480afca5271 sys/compat/sys/ucontext.h
--- a/sys/compat/sys/ucontext.h Sun Jun 30 13:30:15 2019 +0000
+++ b/sys/compat/sys/ucontext.h Sun Jun 30 14:37:33 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ucontext.h,v 1.7 2019/06/27 01:58:49 christos Exp $    */
+/*     $NetBSD: ucontext.h,v 1.8 2019/06/30 14:37:33 christos Exp $    */
 
 /*-
  * Copyright (c) 1999, 2003 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
 
 #include <compat/sys/sigtypes.h>
 
-#if defined(_LP64) && defined(_KERNEL)
+#ifdef _KERNEL
 
 typedef struct __ucontext32       ucontext32_t;
 
@@ -61,6 +61,6 @@
 void   cpu_getmcontext32(struct lwp *, mcontext32_t *, unsigned int *);
 int    cpu_setmcontext32(struct lwp *, const mcontext32_t *, unsigned int);
 
-#endif /* _LP64 && _KERNEL */
+#endif /* _KERNEL */
 
 #endif /* !_COMPAT_SYS_UCONTEXT_H_ */



Home | Main Index | Thread Index | Old Index