equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
75 #define SYSCALL32 0x91d02008 /* 32-bit syscall (ta 8) instruction */ |
75 #define SYSCALL32 0x91d02008 /* 32-bit syscall (ta 8) instruction */ |
76 #define SYSCALL64 0x91d02040 /* 64-bit syscall (ta 64) instruction */ |
76 #define SYSCALL64 0x91d02040 /* 64-bit syscall (ta 64) instruction */ |
77 typedef uint32_t syscall_t; /* holds a syscall instruction */ |
77 typedef uint32_t syscall_t; /* holds a syscall instruction */ |
78 #endif /* sparc */ |
78 #endif /* sparc */ |
79 |
79 |
80 #if defined(__i386) || defined(__ia64) |
80 #if defined(__i386) |
81 #define R_PC EIP |
81 #define R_PC EIP |
82 #define R_SP UESP |
82 #define R_SP UESP |
83 #define R_RVAL1 EAX /* register holding a function return value */ |
83 #define R_RVAL1 EAX /* register holding a function return value */ |
84 #define R_RVAL2 EDX /* 32 more bits for a 64-bit return value */ |
84 #define R_RVAL2 EDX /* 32 more bits for a 64-bit return value */ |
85 #define SYSCALL 0x9a /* syscall (lcall) instruction opcode */ |
85 #define SYSCALL 0x9a /* syscall (lcall) instruction opcode */ |
86 typedef uchar_t syscall_t[7]; /* holds a syscall instruction */ |
86 typedef uchar_t syscall_t[7]; /* holds a syscall instruction */ |
87 #endif /* __i386 || __ia64 */ |
87 #endif /* __i386 */ |
88 |
88 |
89 #define R_RVAL R_RVAL1 /* simple function return value register */ |
89 #define R_RVAL R_RVAL1 /* simple function return value register */ |
90 |
90 |
91 /* maximum sizes of things */ |
91 /* maximum sizes of things */ |
92 #define PRMAXSIG (32 * sizeof (sigset_t) / sizeof (uint32_t)) |
92 #define PRMAXSIG (32 * sizeof (sigset_t) / sizeof (uint32_t)) |