linux32_sysvec.c (289768) | linux32_sysvec.c (289769) |
---|---|
1/*- 2 * Copyright (c) 2004 Tim J. Robbins 3 * Copyright (c) 2003 Peter Wemm 4 * Copyright (c) 2002 Doug Rabson 5 * Copyright (c) 1998-1999 Andrew Gallatin 6 * Copyright (c) 1994-1996 S��ren Schmidt 7 * All rights reserved. 8 * --- 17 unchanged lines hidden (view full) --- 26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2004 Tim J. Robbins 3 * Copyright (c) 2003 Peter Wemm 4 * Copyright (c) 2002 Doug Rabson 5 * Copyright (c) 1998-1999 Andrew Gallatin 6 * Copyright (c) 1994-1996 S��ren Schmidt 7 * All rights reserved. 8 * --- 17 unchanged lines hidden (view full) --- 26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/amd64/linux32/linux32_sysvec.c 289768 2015-10-22 21:23:58Z jhb $"); | 34__FBSDID("$FreeBSD: head/sys/amd64/linux32/linux32_sysvec.c 289769 2015-10-22 21:28:20Z jhb $"); |
35#include "opt_compat.h" 36 37#ifndef COMPAT_FREEBSD32 38#error "Unable to compile Linux-emulator due to missing COMPAT_FREEBSD32 option!" 39#endif 40 41#define __ELF_WORD_SIZE 32 42 --- 67 unchanged lines hidden (view full) --- 110 111const char *linux_kplatform; 112static int linux_szsigcode; 113static vm_object_t linux_shared_page_obj; 114static char *linux_shared_page_mapping; 115extern char _binary_linux32_locore_o_start; 116extern char _binary_linux32_locore_o_end; 117 | 35#include "opt_compat.h" 36 37#ifndef COMPAT_FREEBSD32 38#error "Unable to compile Linux-emulator due to missing COMPAT_FREEBSD32 option!" 39#endif 40 41#define __ELF_WORD_SIZE 32 42 --- 67 unchanged lines hidden (view full) --- 110 111const char *linux_kplatform; 112static int linux_szsigcode; 113static vm_object_t linux_shared_page_obj; 114static char *linux_shared_page_mapping; 115extern char _binary_linux32_locore_o_start; 116extern char _binary_linux32_locore_o_end; 117 |
118extern struct sysent linux_sysent[LINUX_SYS_MAXSYSCALL]; | 118extern struct sysent linux32_sysent[LINUX32_SYS_MAXSYSCALL]; |
119 120SET_DECLARE(linux_ioctl_handler_set, struct linux_ioctl_handler); 121 122static int elf_linux_fixup(register_t **stack_base, 123 struct image_params *iparams); 124static register_t *linux_copyout_strings(struct image_params *imgp); 125static void linux_sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask); 126static void exec_linux_setregs(struct thread *td, --- 876 unchanged lines hidden (view full) --- 1003 if (rl->rlim_max > linux32_maxvmem) 1004 rl->rlim_max = linux32_maxvmem; 1005 } 1006 break; 1007 } 1008} 1009 1010struct sysentvec elf_linux_sysvec = { | 119 120SET_DECLARE(linux_ioctl_handler_set, struct linux_ioctl_handler); 121 122static int elf_linux_fixup(register_t **stack_base, 123 struct image_params *iparams); 124static register_t *linux_copyout_strings(struct image_params *imgp); 125static void linux_sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask); 126static void exec_linux_setregs(struct thread *td, --- 876 unchanged lines hidden (view full) --- 1003 if (rl->rlim_max > linux32_maxvmem) 1004 rl->rlim_max = linux32_maxvmem; 1005 } 1006 break; 1007 } 1008} 1009 1010struct sysentvec elf_linux_sysvec = { |
1011 .sv_size = LINUX_SYS_MAXSYSCALL, 1012 .sv_table = linux_sysent, | 1011 .sv_size = LINUX32_SYS_MAXSYSCALL, 1012 .sv_table = linux32_sysent, |
1013 .sv_mask = 0, 1014 .sv_sigsize = 0, 1015 .sv_sigtbl = NULL, 1016 .sv_errsize = ELAST + 1, 1017 .sv_errtbl = bsd_to_linux_errno, 1018 .sv_transtrap = translate_traps, 1019 .sv_fixup = elf_linux_fixup, 1020 .sv_sendsig = linux_sendsig, --- 187 unchanged lines hidden --- | 1013 .sv_mask = 0, 1014 .sv_sigsize = 0, 1015 .sv_sigtbl = NULL, 1016 .sv_errsize = ELAST + 1, 1017 .sv_errtbl = bsd_to_linux_errno, 1018 .sv_transtrap = translate_traps, 1019 .sv_fixup = elf_linux_fixup, 1020 .sv_sendsig = linux_sendsig, --- 187 unchanged lines hidden --- |