svn commit: r283479 - in head/sys: amd64/amd64 amd64/ia32 arm/arm i386/i386 mips/mips powerpc/powerpc sparc64/sparc64

Konstantin Belousov kostikbel at gmail.com
Sun May 24 18:25:22 UTC 2015


On Sun, May 24, 2015 at 05:56:03PM +0000, Dmitry Chagin wrote:
> Author: dchagin
> Date: Sun May 24 17:56:02 2015
> New Revision: 283479
> URL: https://svnweb.freebsd.org/changeset/base/283479
> 
> Log:
>   The kernel sends signals to the processes via ABI specific sv_sendsig method.
>   Native ABI do not need signal conversion, only emulators may want this. Usually
>   emulators implements its own sv_sendsig method. For now only ibcs2 emulator does
>   not have own sv_sendsig implementation and depends on native sendsig() method.
>   So, remove any extra attempts to convert signal numbers from native sendsig()
>   methods except from i386 where ibsc2 is living.
> 
> Modified:
>   head/sys/amd64/amd64/machdep.c
>   head/sys/amd64/ia32/ia32_signal.c
>   head/sys/arm/arm/machdep.c
>   head/sys/i386/i386/machdep.c
>   head/sys/mips/mips/freebsd32_machdep.c
>   head/sys/mips/mips/pm_machdep.c
>   head/sys/powerpc/powerpc/exec_machdep.c
>   head/sys/sparc64/sparc64/machdep.c
> 
> Modified: head/sys/amd64/amd64/machdep.c
> ==============================================================================
> --- head/sys/amd64/amd64/machdep.c	Sun May 24 17:53:48 2015	(r283478)
> +++ head/sys/amd64/amd64/machdep.c	Sun May 24 17:56:02 2015	(r283479)
> @@ -398,10 +398,6 @@ sendsig(sig_t catcher, ksiginfo_t *ksi, 
>  	/* Align to 16 bytes. */
>  	sfp = (struct sigframe *)((unsigned long)sp & ~0xFul);
>  
> -	/* Translate the signal if appropriate. */
> -	if (p->p_sysent->sv_sigtbl && sig <= p->p_sysent->sv_sigsize)
> -		sig = p->p_sysent->sv_sigtbl[_SIG_IDX(sig)];
> -
Does struct sysent still need sv_sigtbl and sv_sigsize members then ?


More information about the svn-src-all mailing list