diff options
Diffstat (limited to 'arch/x86_64/ia32/ia32_signal.c')
-rw-r--r-- | arch/x86_64/ia32/ia32_signal.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/x86_64/ia32/ia32_signal.c b/arch/x86_64/ia32/ia32_signal.c index a6ba9951e86c..ff499ef2a1ba 100644 --- a/arch/x86_64/ia32/ia32_signal.c +++ b/arch/x86_64/ia32/ia32_signal.c | |||
@@ -579,6 +579,16 @@ int ia32_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, | |||
579 | regs->rsp = (unsigned long) frame; | 579 | regs->rsp = (unsigned long) frame; |
580 | regs->rip = (unsigned long) ka->sa.sa_handler; | 580 | regs->rip = (unsigned long) ka->sa.sa_handler; |
581 | 581 | ||
582 | /* Make -mregparm=3 work */ | ||
583 | regs->rax = sig; | ||
584 | regs->rdx = (unsigned long) &frame->info; | ||
585 | regs->rcx = (unsigned long) &frame->uc; | ||
586 | |||
587 | /* Make -mregparm=3 work */ | ||
588 | regs->rax = sig; | ||
589 | regs->rdx = (unsigned long) &frame->info; | ||
590 | regs->rcx = (unsigned long) &frame->uc; | ||
591 | |||
582 | asm volatile("movl %0,%%ds" :: "r" (__USER32_DS)); | 592 | asm volatile("movl %0,%%ds" :: "r" (__USER32_DS)); |
583 | asm volatile("movl %0,%%es" :: "r" (__USER32_DS)); | 593 | asm volatile("movl %0,%%es" :: "r" (__USER32_DS)); |
584 | 594 | ||