com[davidm]!hans_boehm | 434b9ff | 2003-11-18 21:29:40 +0000 | [diff] [blame] | 1 | /* Linux-specific definitions: */ |
| 2 | |
| 3 | /* Define various structure offsets to simplify cross-compilation. */ |
| 4 | |
| 5 | /* The struct sigcontext is located at an offset of 4 |
| 6 | from the stack pointer in the signal frame. */ |
| 7 | |
| 8 | #define LINUX_SC_ESP_OFF 0x1c |
| 9 | #define LINUX_SC_EBP_OFF 0x18 |
| 10 | #define LINUX_SC_EIP_OFF 0x38 |
| 11 | |
| 12 | /* With SA_SIGINFO set, we believe that basically the same |
| 13 | layout is used for ucontext_t, except that 20 bytes are added |
| 14 | at the beginning. */ |
| 15 | #define LINUX_UC_ESP_OFF (LINUX_SC_ESP_OFF+20) |
| 16 | #define LINUX_UC_EBP_OFF (LINUX_SC_EBP_OFF+20) |
| 17 | #define LINUX_UC_EIP_OFF (LINUX_SC_EIP_OFF+20) |