FreeBSD/sys/i386/linux/linux_sysvec.c
/*
 * If FreeBSD & Linux have a difference of opinion about what a trap
 * means, deal with it here.
 *
 * MPSAFE
 */
If FreeBSD & Linux have a difference of opinion about what a trap
means, deal with it here.

MPSAFE
If FreeBSD & Linux have a difference of opinion about what a trap means deal with it here . MPSAFE
static int
translate_traps(int signal, int trap_code)
{
	if (signal != SIGBUS)
		return (signal);
	switch (trap_code) {
	case T_PROTFLT:
	case T_TSSFLT:
	case T_DOUBLEFLT:
	case T_PAGEFLT:
		return (SIGSEGV);
	default:
		return (signal);
	}
}
static int translate_traps ( int signal , int trap_code ) { if ( signal != SIGBUS ) return ( signal ) ; switch ( trap_code ) { case T_PROTFLT : case T_TSSFLT : case T_DOUBLEFLT : case T_PAGEFLT : return ( SIGSEGV ) ; default : return ( signal ) ; } }
If FreeBSD & Linux have a difference of opinion about what a trap
 means, deal with it here.
If FreeBSD & Linux have a difference of opinion about what a trap means deal with it here .