| 1 | /* |
| 2 | * PPC emulation for qemu: syscall definitions. |
| 3 | * |
| 4 | * Copyright (c) 2003 Jocelyn Mayer |
| 5 | * |
| 6 | * This library is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU Lesser General Public |
| 8 | * License as published by the Free Software Foundation; either |
| 9 | * version 2.1 of the License, or (at your option) any later version. |
| 10 | * |
| 11 | * This library is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 | * Lesser General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU Lesser General Public |
| 17 | * License along with this library; if not, see <http://www.gnu.org/licenses/>. |
| 18 | */ |
| 19 | |
| 20 | #ifndef PPC_TARGET_SYSCALL_H |
| 21 | #define PPC_TARGET_SYSCALL_H |
| 22 | |
| 23 | /* ioctls */ |
| 24 | struct target_revectored_struct { |
| 25 | abi_ulong __map[8]; /* 256 bits */ |
| 26 | }; |
| 27 | |
| 28 | |
| 29 | /* |
| 30 | * flags masks |
| 31 | */ |
| 32 | |
| 33 | #if defined(TARGET_PPC64) |
| 34 | #if TARGET_BIG_ENDIAN |
| 35 | #define UNAME_MACHINE "ppc64" |
| 36 | #else |
| 37 | #define UNAME_MACHINE "ppc64le" |
| 38 | #endif |
| 39 | #else |
| 40 | #define UNAME_MACHINE "ppc" |
| 41 | #endif |
| 42 | #define UNAME_MINIMUM_RELEASE "2.6.32" |
| 43 | |
| 44 | #define TARGET_CLONE_BACKWARDS |
| 45 | |
| 46 | #define TARGET_MCL_CURRENT 0x2000 |
| 47 | #define TARGET_MCL_FUTURE 0x4000 |
| 48 | #define TARGET_MCL_ONFAULT 0x8000 |
| 49 | #define TARGET_WANT_NI_OLD_SELECT |
| 50 | |
| 51 | #endif /* PPC_TARGET_SYSCALL_H */ |