mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
Fix a bunch of type mismatch-related warnings (Jan Kiszka).
Fix a typo in my previous comming (spotted by Laurent Desnouges). git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4877 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
c5f2f66835
commit
526ccb7a26
7 changed files with 23 additions and 21 deletions
|
@ -2755,7 +2755,7 @@ static void setup_rt_frame(int sig, struct target_sigaction *ka,
|
|||
/* Create the ucontext. */
|
||||
err |= __put_user(0, &frame->uc.uc_flags);
|
||||
err |= __put_user(0, (unsigned long *)&frame->uc.uc_link);
|
||||
err |= __put_user((void *)target_sigaltstack_used.ss_sp,
|
||||
err |= __put_user((unsigned long)target_sigaltstack_used.ss_sp,
|
||||
&frame->uc.uc_stack.ss_sp);
|
||||
err |= __put_user(sas_ss_flags(regs->gregs[15]),
|
||||
&frame->uc.uc_stack.ss_flags);
|
||||
|
@ -2982,11 +2982,11 @@ static void setup_frame(int sig, struct target_sigaction *ka,
|
|||
setup_sigcontext(&frame->sc, env);
|
||||
|
||||
/* Move the stack and setup the arguments for the handler. */
|
||||
env->regs[R_SP] = (uint32_t) frame;
|
||||
env->regs[R_SP] = (uint32_t) (unsigned long) frame;
|
||||
env->regs[10] = sig;
|
||||
env->pc = (unsigned long) ka->_sa_handler;
|
||||
/* Link SRP so the guest returns through the trampoline. */
|
||||
env->pregs[PR_SRP] = (uint32_t) &frame->retcode[0];
|
||||
env->pregs[PR_SRP] = (uint32_t) (unsigned long) &frame->retcode[0];
|
||||
|
||||
unlock_user_struct(frame, frame_addr, 1);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue