Statistics
| Branch: | Revision:

root / bsd-user / x86_64 / target_signal.h @ 0e326109

History | View | Annotate | Download (374 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
static inline abi_ulong get_sp_from_cpustate(CPUX86State *state)
15 31fc12df blueswir1
{
16 31fc12df blueswir1
    return state->regs[R_ESP];
17 31fc12df blueswir1
}
18 31fc12df blueswir1
19 31fc12df blueswir1
#endif /* TARGET_SIGNAL_H */