OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SANDBOX_LINUX_SYSTEM_HEADERS_ARM_LINUX_UCONTEXT_H_ | 5 #ifndef SANDBOX_LINUX_SYSTEM_HEADERS_ARM_LINUX_UCONTEXT_H_ |
6 #define SANDBOX_LINUX_SYSTEM_HEADERS_ARM_LINUX_UCONTEXT_H_ | 6 #define SANDBOX_LINUX_SYSTEM_HEADERS_ARM_LINUX_UCONTEXT_H_ |
7 | 7 |
8 #include <stddef.h> | |
9 | |
10 #if !defined(__BIONIC_HAVE_UCONTEXT_T) | 8 #if !defined(__BIONIC_HAVE_UCONTEXT_T) |
11 #if !defined(__native_client_nonsfi__) | 9 #if !defined(__native_client_nonsfi__) |
12 #include <asm/sigcontext.h> | 10 #include <asm/sigcontext.h> |
13 #else | 11 #else |
14 // In PNaCl toolchain, sigcontext and stack_t is not defined. So here declare | 12 // In PNaCl toolchain, sigcontext and stack_t is not defined. So here declare |
15 // them. | 13 // them. |
16 struct sigcontext { | 14 struct sigcontext { |
17 unsigned long trap_no; | 15 unsigned long trap_no; |
18 unsigned long error_code; | 16 unsigned long error_code; |
19 unsigned long oldmask; | 17 unsigned long oldmask; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 /* Last for extensibility. Eight byte aligned because some | 58 /* Last for extensibility. Eight byte aligned because some |
61 coprocessors require eight byte alignment. */ | 59 coprocessors require eight byte alignment. */ |
62 unsigned long uc_regspace[128] __attribute__((__aligned__(8))); | 60 unsigned long uc_regspace[128] __attribute__((__aligned__(8))); |
63 } ucontext_t; | 61 } ucontext_t; |
64 | 62 |
65 #else | 63 #else |
66 #include <sys/ucontext.h> | 64 #include <sys/ucontext.h> |
67 #endif // __BIONIC_HAVE_UCONTEXT_T | 65 #endif // __BIONIC_HAVE_UCONTEXT_T |
68 | 66 |
69 #endif // SANDBOX_LINUX_SYSTEM_HEADERS_ARM_LINUX_UCONTEXT_H_ | 67 #endif // SANDBOX_LINUX_SYSTEM_HEADERS_ARM_LINUX_UCONTEXT_H_ |
OLD | NEW |