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 // Generated from the Linux kernel's calls.S. | 5 // Generated from the Linux kernel's calls.S. |
6 #ifndef SANDBOX_LINUX_SERVICES_ARM_LINUX_SYSCALLS_H_ | 6 #ifndef SANDBOX_LINUX_SERVICES_ARM_LINUX_SYSCALLS_H_ |
7 #define SANDBOX_LINUX_SERVICES_ARM_LINUX_SYSCALLS_H_ | 7 #define SANDBOX_LINUX_SERVICES_ARM_LINUX_SYSCALLS_H_ |
8 | 8 |
9 // This file doesn't yet list all syscalls. | 9 // This file doesn't yet list all syscalls. |
10 // TODO(jorgelo): define all ARM syscalls. | 10 // TODO(jorgelo): define all ARM syscalls. |
11 | 11 |
12 #if !defined(__arm__) | 12 #if !defined(__arm__) |
13 #error "Including header on wrong architecture" | 13 #error "Including header on wrong architecture" |
14 #endif | 14 #endif |
15 | 15 |
16 // __NR_SYSCALL_BASE is defined in <asm/unistd.h>. | 16 // __NR_SYSCALL_BASE is defined in <asm/unistd.h>. |
17 #include <asm/unistd.h> | 17 #include <asm/unistd.h> |
18 | 18 |
19 #ifndef __NR_process_vm_readv | 19 #ifndef __NR_process_vm_readv |
20 #define __NR_process_vm_readv (__NR_SYSCALL_BASE+376) | 20 #define __NR_process_vm_readv (__NR_SYSCALL_BASE+376) |
21 #endif | 21 #endif |
22 | 22 |
23 #ifndef __NR_process_vm_writev | 23 #ifndef __NR_process_vm_writev |
24 #define __NR_process_vm_writev (__NR_SYSCALL_BASE+377) | 24 #define __NR_process_vm_writev (__NR_SYSCALL_BASE+377) |
25 #endif | 25 #endif |
26 | 26 |
| 27 #ifndef __ARM_NR_cmpxchg |
| 28 #define __ARM_NR_cmpxchg (__ARM_NR_BASE+0x00fff0) |
| 29 #endif |
| 30 |
27 #endif // SANDBOX_LINUX_SERVICES_ARM_LINUX_SYSCALLS_H_ | 31 #endif // SANDBOX_LINUX_SERVICES_ARM_LINUX_SYSCALLS_H_ |
28 | 32 |
OLD | NEW |