-----BEGIN PGP SIGNATURE-----
iQIcBAABAgAGBQJaw1h7AAoJEPMMOL0/L74855AP/1PWGJunWm0mwadEa3dhOGZh YSm1rK5Akt19ifwa+qFZ0zzxGUDOkY8McLyO+AIByQKQ5Z5Iv87ZmdOtBKTePXDe B7uiZxIuENW/TLmXqf5CeMQcwFPJUvf0IYk+y6S34Uuq+W09szUz4xLs6ORTkqFi 1YxuwiVn6frnTo6gxPNhQl9VKVi+xaUVgXrrhOJOOcLdc/AAcBtbG2RpKFCff35d +dgwhXcpAAh4RwVsK1qYVAVyp+QKw6Sf7p2nMNRR+ZjdfqWWYqxuI1A7G7gAY3X5 MkFCs7ccjHt+PMp9RS/5mnLBm3LQqcsQiiqVIifdq1APkr5ejOaD9wR7WQX0EIqD GN/ygUUgmOCYGE0EQNKQ/+Iq8adE6qKrsbeZkdM945vgFZ8aBBbN/22EKsqtpa3O 5vovfVfAuy4egqtZ3hMYU8hcXFNRzUyTBrbUEpP0jT17OIpso0jiaEbFr9u3ajQU w0gE4N6aiI+LnIQeJ52QRUqvRneas2bm/Wc7NSY1wkJvZzv+AKRTMENqKlN9cTFk ZJGqGWcCny94ExOJwDi6A+DsyDOXL0n+IgBkO6yZqMFTMHu8uRfEYaJ5Oic0Yjbt G7lRCjwvfJRbyapFQYN5nUe1UmNSqzU75xfC1jVeLhBKgjtdPDzEBl+uvdcGh5Us bk8WR4ZbtxdO7WxdCzXd =CWOK -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-2.12-pull-request' into staging # gpg: Signature made Tue 03 Apr 2018 11:33:31 BST # gpg: using RSA key F30C38BD3F2FBE3C # gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" # gpg: aka "Laurent Vivier <laurent@vivier.eu>" # gpg: aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" # Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F 5173 F30C 38BD 3F2F BE3C * remotes/vivier2/tags/linux-user-for-2.12-pull-request: linux-user: fix TARGET___O_TMPFILE for sparc linux-user: define TARGET_ARCH_HAS_KA_RESTORER linux-user: fix alpha signal emulation Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
71ad102baa
@ -2920,8 +2920,8 @@ static void setup_frame(int sig, struct target_sigaction *ka,
|
||||
env->pc = ka->_sa_handler;
|
||||
env->npc = (env->pc + 4);
|
||||
/* 5. return to kernel instructions */
|
||||
if (ka->sa_restorer) {
|
||||
env->regwptr[UREG_I7] = ka->sa_restorer;
|
||||
if (ka->ka_restorer) {
|
||||
env->regwptr[UREG_I7] = ka->ka_restorer;
|
||||
} else {
|
||||
uint32_t val32;
|
||||
|
||||
@ -6367,7 +6367,7 @@ static void setup_frame(int sig, struct target_sigaction *ka,
|
||||
&frame->retcode[1]);
|
||||
__put_user(INSN_CALLSYS, &frame->retcode[2]);
|
||||
/* imb() */
|
||||
r26 = frame_addr;
|
||||
r26 = frame_addr + offsetof(struct target_sigframe, retcode);
|
||||
}
|
||||
|
||||
unlock_user_struct(frame, frame_addr, 1);
|
||||
@ -6424,7 +6424,7 @@ static void setup_rt_frame(int sig, struct target_sigaction *ka,
|
||||
&frame->retcode[1]);
|
||||
__put_user(INSN_CALLSYS, &frame->retcode[2]);
|
||||
/* imb(); */
|
||||
r26 = frame_addr;
|
||||
r26 = frame_addr + offsetof(struct target_sigframe, retcode);
|
||||
}
|
||||
|
||||
if (err) {
|
||||
|
@ -8700,6 +8700,9 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
|
||||
target_siginitset(&act.sa_mask, old_act->sa_mask);
|
||||
act.sa_flags = old_act->sa_flags;
|
||||
act.sa_restorer = old_act->sa_restorer;
|
||||
#ifdef TARGET_ARCH_HAS_KA_RESTORER
|
||||
act.ka_restorer = 0;
|
||||
#endif
|
||||
unlock_user_struct(old_act, arg2, 0);
|
||||
pact = &act;
|
||||
} else {
|
||||
@ -8774,8 +8777,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
|
||||
if (!lock_user_struct(VERIFY_READ, act, arg2, 1)) {
|
||||
goto efault;
|
||||
}
|
||||
#ifdef TARGET_SPARC
|
||||
act->sa_restorer = restorer;
|
||||
#ifdef TARGET_ARCH_HAS_KA_RESTORER
|
||||
act->ka_restorer = restorer;
|
||||
#endif
|
||||
} else {
|
||||
act = NULL;
|
||||
|
@ -435,6 +435,7 @@ int do_sigaction(int sig, const struct target_sigaction *act,
|
||||
#define TARGET_SA_NODEFER 0x20u
|
||||
#define TARGET_SA_RESETHAND 4u
|
||||
#define TARGET_ARCH_HAS_SA_RESTORER 1
|
||||
#define TARGET_ARCH_HAS_KA_RESTORER 1
|
||||
#elif defined(TARGET_MIPS)
|
||||
#define TARGET_SA_NOCLDSTOP 0x00000001
|
||||
#define TARGET_SA_NOCLDWAIT 0x00010000
|
||||
@ -742,6 +743,9 @@ struct target_sigaction {
|
||||
abi_ulong sa_restorer;
|
||||
#endif
|
||||
target_sigset_t sa_mask;
|
||||
#ifdef TARGET_ARCH_HAS_KA_RESTORER
|
||||
abi_ulong ka_restorer;
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
||||
@ -2561,6 +2565,7 @@ struct target_statfs64 {
|
||||
#define TARGET_O_CLOEXEC 0x400000
|
||||
#define TARGET___O_SYNC 0x800000
|
||||
#define TARGET_O_PATH 0x1000000
|
||||
#define TARGET___O_TMPFILE 0x2000000
|
||||
#endif
|
||||
|
||||
/* <asm-generic/fcntl.h> values follow. */
|
||||
|
Loading…
Reference in New Issue
Block a user