Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] fix i386 regparm=3 RT signal handlers on x86_64

The recent change to make x86_64 support i386 binaries compiled
with -mregparm=3 only covered signal handlers without SA_SIGINFO.
(the 3-arg "real-time" ones) This is useful for klibc at least.

Signed-off-by: Albert Cahalan <acahalan@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Albert Cahalan and committed by
Linus Torvalds
a7aacdf9 202dd450

+5
+5
arch/x86_64/ia32/ia32_signal.c
··· 579 579 regs->rsp = (unsigned long) frame; 580 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 + 582 587 asm volatile("movl %0,%%ds" :: "r" (__USER32_DS)); 583 588 asm volatile("movl %0,%%es" :: "r" (__USER32_DS)); 584 589