diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2015-04-10 04:35:08 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-04-10 04:35:08 +0000 |
commit | 847ad9002dbd0d78dd3b4d966765b9485a058ec3 (patch) | |
tree | 9c87590f5332f78aebea5a36b64c30b7e7ae33d0 | |
parent | 0ee59ad06d8716ae6195d6a96ecfb408d37024f4 (diff) | |
parent | 25eeac03c7c6cdbe25d6e442a136cde79471a1ca (diff) | |
download | prebuilts_ndk-847ad9002dbd0d78dd3b4d966765b9485a058ec3.zip prebuilts_ndk-847ad9002dbd0d78dd3b4d966765b9485a058ec3.tar.gz prebuilts_ndk-847ad9002dbd0d78dd3b4d966765b9485a058ec3.tar.bz2 |
am 25eeac03: Merge "Add correct mcontext_t for 64-bit MIPS"
* commit '25eeac03c7c6cdbe25d6e442a136cde79471a1ca':
Add correct mcontext_t for 64-bit MIPS
-rw-r--r-- | 9/platforms/android-21/arch-mips64/usr/include/sys/ucontext.h | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/9/platforms/android-21/arch-mips64/usr/include/sys/ucontext.h b/9/platforms/android-21/arch-mips64/usr/include/sys/ucontext.h index dd2a0bb..b68d704 100644 --- a/9/platforms/android-21/arch-mips64/usr/include/sys/ucontext.h +++ b/9/platforms/android-21/arch-mips64/usr/include/sys/ucontext.h @@ -180,6 +180,25 @@ typedef struct fpregset { } fp_r; } fpregset_t; +#ifdef __LP64__ +typedef struct { + gregset_t gregs; + fpregset_t fpregs; + greg_t mdhi; + greg_t hi1; + greg_t hi2; + greg_t hi3; + greg_t mdlo; + greg_t lo1; + greg_t lo2; + greg_t lo3; + greg_t pc; + uint32_t fpc_csr; + uint32_t used_math; + uint32_t dsp; + uint32_t reserved; +} mcontext_t; +#else typedef struct { unsigned regmask; unsigned status; @@ -200,6 +219,7 @@ typedef struct { unsigned long hi3; unsigned long lo3; } mcontext_t; +#endif typedef struct ucontext { unsigned long uc_flags; @@ -209,10 +229,6 @@ typedef struct ucontext { sigset_t uc_sigmask; } ucontext_t; -#elif defined(__mips64__) - -#error TODO - #elif defined(__x86_64__) enum { |