e2k: Set correct NR macro for pread/pwrite.
This commit is contained in:
parent
26b9e9a1e4
commit
5cb3b40f2d
|
@ -211,7 +211,7 @@ static void target_setup_frame(int sig, struct target_sigaction *ka,
|
||||||
env->wd.psize = 0;
|
env->wd.psize = 0;
|
||||||
env->usd.size = env->sbr - frame_addr;
|
env->usd.size = env->sbr - frame_addr;
|
||||||
env->usd.base = frame_addr;
|
env->usd.base = frame_addr;
|
||||||
helper_signal_frame(env, 2, 0xe2ffffffffff);
|
helper_signal_frame(env, 2, E2K_SYSRET_ADDR_CTPR);
|
||||||
|
|
||||||
env->ip = ka->_sa_handler;
|
env->ip = ka->_sa_handler;
|
||||||
env->regs[0] = sig;
|
env->regs[0] = sig;
|
||||||
|
|
|
@ -184,8 +184,8 @@
|
||||||
#define TARGET_NR_rt_sigtimedwait 177
|
#define TARGET_NR_rt_sigtimedwait 177
|
||||||
#define TARGET_NR_rt_sigqueueinfo 178
|
#define TARGET_NR_rt_sigqueueinfo 178
|
||||||
#define TARGET_NR_rt_sigsuspend 179
|
#define TARGET_NR_rt_sigsuspend 179
|
||||||
#define TARGET_NR_pread 180
|
#define TARGET_NR_pread64 180
|
||||||
#define TARGET_NR_pwrite 181
|
#define TARGET_NR_pwrite64 181
|
||||||
#define TARGET_NR_chown 182
|
#define TARGET_NR_chown 182
|
||||||
#define TARGET_NR_getcwd 183
|
#define TARGET_NR_getcwd 183
|
||||||
#define TARGET_NR_capget 184
|
#define TARGET_NR_capget 184
|
||||||
|
|
Loading…
Reference in New Issue