| 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_SYSTEM_HEADERS_ARM_LINUX_SYSCALLS_H_ | 6 #ifndef SANDBOX_LINUX_SYSTEM_HEADERS_ARM_LINUX_SYSCALLS_H_ |
| 7 #define SANDBOX_LINUX_SYSTEM_HEADERS_ARM_LINUX_SYSCALLS_H_ | 7 #define SANDBOX_LINUX_SYSTEM_HEADERS_ARM_LINUX_SYSCALLS_H_ |
| 8 | 8 |
| 9 #if !defined(__arm__) || !defined(__ARM_EABI__) | 9 #if !defined(__arm__) || !defined(__ARM_EABI__) |
| 10 #error "Including header on wrong architecture" | 10 #error "Including header on wrong architecture" |
| 11 #endif | 11 #endif |
| 12 | 12 |
| 13 // __NR_SYSCALL_BASE, __ARM_NR_BASE are defined in <asm/unistd.h>. | 13 #if !defined(__NR_SYSCALL_BASE) |
| 14 #include <asm/unistd.h> | 14 // On ARM EABI arch, __NR_SYSCALL_BASE is 0. |
| 15 #define __NR_SYSCALL_BASE 0 |
| 16 #endif |
| 15 | 17 |
| 16 // This syscall list has holes, because ARM EABI makes some syscalls obsolete. | 18 // This syscall list has holes, because ARM EABI makes some syscalls obsolete. |
| 17 | 19 |
| 18 #if !defined(__NR_restart_syscall) | 20 #if !defined(__NR_restart_syscall) |
| 19 #define __NR_restart_syscall (__NR_SYSCALL_BASE+0) | 21 #define __NR_restart_syscall (__NR_SYSCALL_BASE+0) |
| 20 #endif | 22 #endif |
| 21 | 23 |
| 22 #if !defined(__NR_exit) | 24 #if !defined(__NR_exit) |
| 23 #define __NR_exit (__NR_SYSCALL_BASE+1) | 25 #define __NR_exit (__NR_SYSCALL_BASE+1) |
| 24 #endif | 26 #endif |
| (...skipping 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1373 | 1375 |
| 1374 #if !defined(__NR_getrandom) | 1376 #if !defined(__NR_getrandom) |
| 1375 #define __NR_getrandom (__NR_SYSCALL_BASE+384) | 1377 #define __NR_getrandom (__NR_SYSCALL_BASE+384) |
| 1376 #endif | 1378 #endif |
| 1377 | 1379 |
| 1378 #if !defined(__NR_memfd_create) | 1380 #if !defined(__NR_memfd_create) |
| 1379 #define __NR_memfd_create (__NR_SYSCALL_BASE+385) | 1381 #define __NR_memfd_create (__NR_SYSCALL_BASE+385) |
| 1380 #endif | 1382 #endif |
| 1381 | 1383 |
| 1382 // ARM private syscalls. | 1384 // ARM private syscalls. |
| 1385 #if !defined(__ARM_NR_BASE) |
| 1386 #define __ARM_NR_BASE (__NR_SYSCALL_BASE + 0xF0000) |
| 1387 #endif |
| 1388 |
| 1383 #if !defined(__ARM_NR_breakpoint) | 1389 #if !defined(__ARM_NR_breakpoint) |
| 1384 #define __ARM_NR_breakpoint (__ARM_NR_BASE+1) | 1390 #define __ARM_NR_breakpoint (__ARM_NR_BASE+1) |
| 1385 #endif | 1391 #endif |
| 1386 | 1392 |
| 1387 #if !defined(__ARM_NR_cacheflush) | 1393 #if !defined(__ARM_NR_cacheflush) |
| 1388 #define __ARM_NR_cacheflush (__ARM_NR_BASE+2) | 1394 #define __ARM_NR_cacheflush (__ARM_NR_BASE+2) |
| 1389 #endif | 1395 #endif |
| 1390 | 1396 |
| 1391 #if !defined(__ARM_NR_usr26) | 1397 #if !defined(__ARM_NR_usr26) |
| 1392 #define __ARM_NR_usr26 (__ARM_NR_BASE+3) | 1398 #define __ARM_NR_usr26 (__ARM_NR_BASE+3) |
| 1393 #endif | 1399 #endif |
| 1394 | 1400 |
| 1395 #if !defined(__ARM_NR_usr32) | 1401 #if !defined(__ARM_NR_usr32) |
| 1396 #define __ARM_NR_usr32 (__ARM_NR_BASE+4) | 1402 #define __ARM_NR_usr32 (__ARM_NR_BASE+4) |
| 1397 #endif | 1403 #endif |
| 1398 | 1404 |
| 1399 #if !defined(__ARM_NR_set_tls) | 1405 #if !defined(__ARM_NR_set_tls) |
| 1400 #define __ARM_NR_set_tls (__ARM_NR_BASE+5) | 1406 #define __ARM_NR_set_tls (__ARM_NR_BASE+5) |
| 1401 #endif | 1407 #endif |
| 1402 | 1408 |
| 1403 // ARM kernel private syscall. | 1409 // ARM kernel private syscall. |
| 1404 #if !defined(__ARM_NR_cmpxchg) | 1410 #if !defined(__ARM_NR_cmpxchg) |
| 1405 #define __ARM_NR_cmpxchg (__ARM_NR_BASE+0x00fff0) | 1411 #define __ARM_NR_cmpxchg (__ARM_NR_BASE+0x00fff0) |
| 1406 #endif | 1412 #endif |
| 1407 | 1413 |
| 1408 #endif // SANDBOX_LINUX_SYSTEM_HEADERS_ARM_LINUX_SYSCALLS_H_ | 1414 #endif // SANDBOX_LINUX_SYSTEM_HEADERS_ARM_LINUX_SYSCALLS_H_ |
| 1409 | |
| OLD | NEW |