OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef SANDBOX_LINUX_SERVICES_ANDROID_X86_UCONTEXT_H_ |
| 6 #define SANDBOX_LINUX_SERVICES_ANDROID_X86_UCONTEXT_H_ |
| 7 |
| 8 #include <asm/sigcontext.h> |
| 9 |
| 10 /* Type for general register. */ |
| 11 typedef int greg_t; |
| 12 typedef struct { |
| 13 greg_t gregs[19]; |
| 14 void* fpregs; |
| 15 unsigned long int oldmask; |
| 16 unsigned long int cr2; |
| 17 } mcontext_t; |
| 18 |
| 19 enum { |
| 20 REG_GS = 0, REG_FS, REG_ES, REG_DS, |
| 21 REG_EDI, REG_ESI, REG_EBP, REG_ESP, |
| 22 REG_EBX, REG_EDX, REG_ECX, REG_EAX, |
| 23 REG_TRAPNO, REG_ERR, REG_EIP, REG_CS, |
| 24 REG_EFL, REG_UESP, REG_SS |
| 25 }; |
| 26 |
| 27 /* Machine context at the time a signal was raised. */ |
| 28 typedef struct ucontext { |
| 29 unsigned long int uc_flags; |
| 30 struct ucontext* uc_link; |
| 31 stack_t uc_stack; |
| 32 mcontext_t uc_mcontext; |
| 33 sigset_t uc_sigmask; |
| 34 } ucontext_t; |
| 35 #endif // SANDBOX_LINUX_SERVICES_ANDROID_ARM_UCONTEXT_H_ |
OLD | NEW |