summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-02-12 07:38:19 +0000
committerkib <kib@FreeBSD.org>2016-02-12 07:38:19 +0000
commita05a278552bfbdc67dd026be8a748c627b57d0c4 (patch)
tree783f901008bac7a377fe9c52843c1f80c9e84512 /sys/powerpc
parent7af72453b7efe688c01e9d79607f455c01914ba7 (diff)
downloadFreeBSD-src-a05a278552bfbdc67dd026be8a748c627b57d0c4.zip
FreeBSD-src-a05a278552bfbdc67dd026be8a748c627b57d0c4.tar.gz
POSIX states that #include <signal.h> shall make both mcontext_t and
ucontext_t available. Our code even has XXX comment about this. Add a bit of compliance by moving struct __ucontext definition into sys/_ucontext.h and including it into signal.h and sys/ucontext.h. Several machine/ucontext.h headers were changed to use namespace-safe types (like uint64_t->__uint64_t) to not depend on sys/types.h. struct __stack_t from sys/signal.h is made always visible in private namespace to satisfy sys/_ucontext.h requirements. Apparently mips _types.h pollutes global namespace with f_register_t type definition. This commit does not try to fix the issue. PR: 207079 Reported and tested by: Ting-Wei Lan <lantw44@gmail.com> Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/include/ucontext.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/powerpc/include/ucontext.h b/sys/powerpc/include/ucontext.h
index 34e391a..42c39e1 100644
--- a/sys/powerpc/include/ucontext.h
+++ b/sys/powerpc/include/ucontext.h
@@ -42,11 +42,11 @@ typedef struct __mcontext {
#define _MC_AV_VALID 0x02
int mc_onstack; /* saved onstack flag */
int mc_len; /* sizeof(__mcontext) */
- uint64_t mc_avec[32*2]; /* vector register file */
- uint32_t mc_av[2];
- register_t mc_frame[42];
- uint64_t mc_fpreg[33];
- uint64_t mc_vsxfpreg[32]; /* low-order half of VSR0-31 */
+ __uint64_t mc_avec[32*2]; /* vector register file */
+ __uint32_t mc_av[2];
+ __register_t mc_frame[42];
+ __uint64_t mc_fpreg[33];
+ __uint64_t mc_vsxfpreg[32]; /* low-order half of VSR0-31 */
} mcontext_t __aligned(16);
#if defined(_KERNEL) && defined(__powerpc64__)
OpenPOWER on IntegriCloud