Statistics
| Branch: | Revision:

root / bsd-user / i386 / target_signal.h @ f8d3d128

History | View | Annotate | Download (375 Bytes)

1 31fc12df blueswir1
#ifndef TARGET_SIGNAL_H
2 31fc12df blueswir1
#define TARGET_SIGNAL_H
3 31fc12df blueswir1
4 31fc12df blueswir1
#include "cpu.h"
5 31fc12df blueswir1
6 31fc12df blueswir1
/* this struct defines a stack used during syscall handling */
7 31fc12df blueswir1
8 31fc12df blueswir1
typedef struct target_sigaltstack {
9 31fc12df blueswir1
        abi_ulong ss_sp;
10 31fc12df blueswir1
        abi_long ss_flags;
11 31fc12df blueswir1
        abi_ulong ss_size;
12 31fc12df blueswir1
} target_stack_t;
13 31fc12df blueswir1
14 31fc12df blueswir1
15 31fc12df blueswir1
static inline abi_ulong get_sp_from_cpustate(CPUX86State *state)
16 31fc12df blueswir1
{
17 31fc12df blueswir1
    return state->regs[R_ESP];
18 31fc12df blueswir1
}
19 31fc12df blueswir1
20 31fc12df blueswir1
#endif /* TARGET_SIGNAL_H */