* commit '9d8b7d1ac495b2cda848fd6a06088e5654b74ed6': [MIPS64] Add correct mcontext_t for 64-bit MIPS
This commit is contained in:
		@@ -180,6 +180,25 @@ typedef struct fpregset {
 | 
				
			|||||||
  } fp_r;
 | 
					  } fp_r;
 | 
				
			||||||
} fpregset_t;
 | 
					} 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 {
 | 
					typedef struct {
 | 
				
			||||||
  unsigned regmask;
 | 
					  unsigned regmask;
 | 
				
			||||||
  unsigned status;
 | 
					  unsigned status;
 | 
				
			||||||
@@ -200,6 +219,7 @@ typedef struct {
 | 
				
			|||||||
  unsigned long hi3;
 | 
					  unsigned long hi3;
 | 
				
			||||||
  unsigned long lo3;
 | 
					  unsigned long lo3;
 | 
				
			||||||
} mcontext_t;
 | 
					} mcontext_t;
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
typedef struct ucontext {
 | 
					typedef struct ucontext {
 | 
				
			||||||
  unsigned long uc_flags;
 | 
					  unsigned long uc_flags;
 | 
				
			||||||
@@ -209,10 +229,6 @@ typedef struct ucontext {
 | 
				
			|||||||
  sigset_t uc_sigmask;
 | 
					  sigset_t uc_sigmask;
 | 
				
			||||||
} ucontext_t;
 | 
					} ucontext_t;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#elif defined(__mips64__)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#error TODO
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#elif defined(__x86_64__)
 | 
					#elif defined(__x86_64__)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
enum {
 | 
					enum {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user