bsd-user: Add architecture specific signal tramp code
Add a stubbed out version of setup_sigtramp. This is not yet used for x86, but is used for other architectures. This will be connected in future commits. Signed-off-by: Stacey Son <sson@FreeBSD.org> Signed-off-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
534217f784
commit
c336094c5c
29
bsd-user/i386/target_arch_sigtramp.h
Normal file
29
bsd-user/i386/target_arch_sigtramp.h
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
/*
|
||||||
|
* Intel i386 sigcode for bsd-user
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013 Stacey D. Son
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _TARGET_ARCH_SIGTRAMP_H_
|
||||||
|
#define _TARGET_ARCH_SIGTRAMP_H_
|
||||||
|
|
||||||
|
static inline abi_long setup_sigtramp(abi_ulong offset, unsigned sigf_uc,
|
||||||
|
unsigned sys_sigreturn)
|
||||||
|
{
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif /* _TARGET_ARCH_SIGTRAMP_H_ */
|
29
bsd-user/x86_64/target_arch_sigtramp.h
Normal file
29
bsd-user/x86_64/target_arch_sigtramp.h
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
/*
|
||||||
|
* Intel x86_64 sigcode for bsd-user
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013 Stacey D. Son
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _TARGET_ARCH_SIGTRAMP_H_
|
||||||
|
#define _TARGET_ARCH_SIGTRAMP_H_
|
||||||
|
|
||||||
|
static inline abi_long setup_sigtramp(abi_ulong offset, unsigned sigf_uc,
|
||||||
|
unsigned sys_sigreturn)
|
||||||
|
{
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif /* _TARGET_ARCH_SIGTRAMP_H_ */
|
Loading…
Reference in New Issue
Block a user