Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: sandbox/linux/services/android_x86_ucontext.h

Issue 11639038: ucontext_t support for Android x86. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ucontext_t support for Android x86 Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sandbox/linux/services/android_ucontext.h ('k') | sandbox/linux/services/ucontext_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « sandbox/linux/services/android_ucontext.h ('k') | sandbox/linux/services/ucontext_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698