Module Name: src
Committed By: christos
Date: Sun Jun 30 14:37:33 UTC 2019
Modified Files:
src/sys/compat/sys: sigtypes.h ucontext.h
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/compat/sys/sigtypes.h
cvs rdiff -u -r1.7 -r1.8 src/sys/compat/sys/ucontext.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/compat/sys/sigtypes.h
diff -u src/sys/compat/sys/sigtypes.h:1.3 src/sys/compat/sys/sigtypes.h:1.4
--- src/sys/compat/sys/sigtypes.h:1.3 Wed Jun 26 21:58:49 2019
+++ src/sys/compat/sys/sigtypes.h Sun Jun 30 10:37:33 2019
@@ -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 @@ struct sigaltstack13 {
#endif /* _POSIX_C_SOURCE || _XOPEN_SOURCE || ... */
-#if defined(_LP64) && defined(_KERNEL)
+#ifdef _KERNEL
struct __sigaltstack32 {
uint32_t ss_sp;
@@ -73,7 +73,7 @@ struct __sigaltstack32 {
typedef struct __sigaltstack32 stack32_t;
-#endif /* _LP64 && _KERNEL */
+#endif /* _KERNEL */
#endif /* !_COMPAT_SYS_SIGTYPES_H_ */
Index: src/sys/compat/sys/ucontext.h
diff -u src/sys/compat/sys/ucontext.h:1.7 src/sys/compat/sys/ucontext.h:1.8
--- src/sys/compat/sys/ucontext.h:1.7 Wed Jun 26 21:58:49 2019
+++ src/sys/compat/sys/ucontext.h Sun Jun 30 10:37:33 2019
@@ -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 @@ int cpu_mcontext32_validate(struct lwp *
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_ */