Deleted Added
full compact
cloudabi32_sysvec.c (302448) cloudabi32_sysvec.c (303941)
1/*-
2 * Copyright (c) 2015 Nuxi, https://nuxi.nl/
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

--- 10 unchanged lines hidden (view full) ---

19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 */
25
26#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2015 Nuxi, https://nuxi.nl/
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

--- 10 unchanged lines hidden (view full) ---

19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 */
25
26#include <sys/cdefs.h>
27__FBSDID("$FreeBSD: head/sys/amd64/cloudabi64/cloudabi64_sysvec.c 302448 2016-07-08 20:09:21Z ed $");
27__FBSDID("$FreeBSD: head/sys/amd64/cloudabi64/cloudabi64_sysvec.c 303941 2016-08-10 21:02:41Z ed $");
28
29#include <sys/param.h>
30#include <sys/imgact.h>
31#include <sys/kernel.h>
32#include <sys/proc.h>
33#include <sys/sysent.h>
34
35#include <vm/vm.h>

--- 155 unchanged lines hidden (view full) ---

191 .sv_size = CLOUDABI64_SYS_MAXSYSCALL,
192 .sv_table = cloudabi64_sysent,
193 .sv_fixup = cloudabi64_fixup_tcb,
194 .sv_name = "CloudABI ELF64",
195 .sv_coredump = elf64_coredump,
196 .sv_pagesize = PAGE_SIZE,
197 .sv_minuser = VM_MIN_ADDRESS,
198 .sv_maxuser = VM_MAXUSER_ADDRESS,
28
29#include <sys/param.h>
30#include <sys/imgact.h>
31#include <sys/kernel.h>
32#include <sys/proc.h>
33#include <sys/sysent.h>
34
35#include <vm/vm.h>

--- 155 unchanged lines hidden (view full) ---

191 .sv_size = CLOUDABI64_SYS_MAXSYSCALL,
192 .sv_table = cloudabi64_sysent,
193 .sv_fixup = cloudabi64_fixup_tcb,
194 .sv_name = "CloudABI ELF64",
195 .sv_coredump = elf64_coredump,
196 .sv_pagesize = PAGE_SIZE,
197 .sv_minuser = VM_MIN_ADDRESS,
198 .sv_maxuser = VM_MAXUSER_ADDRESS,
199 .sv_usrstack = USRSTACK,
200 .sv_stackprot = VM_PROT_READ | VM_PROT_WRITE,
201 .sv_copyout_strings = cloudabi64_copyout_strings,
202 .sv_setregs = cloudabi64_proc_setregs,
203 .sv_flags = SV_ABI_CLOUDABI | SV_CAPSICUM | SV_LP64,
204 .sv_set_syscall_retval = cloudabi64_set_syscall_retval,
205 .sv_fetch_syscall_args = cloudabi64_fetch_syscall_args,
206 .sv_syscallnames = cloudabi64_syscallnames,
207 .sv_schedtail = cloudabi64_schedtail,
208};
209
210INIT_SYSENTVEC(elf_sysvec, &cloudabi64_elf_sysvec);
211
212Elf64_Brandinfo cloudabi64_brand = {
213 .brand = ELFOSABI_CLOUDABI,
214 .machine = EM_X86_64,
215 .sysvec = &cloudabi64_elf_sysvec,
216 .flags = BI_CAN_EXEC_DYN,
217 .compat_3_brand = "CloudABI",
218};
199 .sv_stackprot = VM_PROT_READ | VM_PROT_WRITE,
200 .sv_copyout_strings = cloudabi64_copyout_strings,
201 .sv_setregs = cloudabi64_proc_setregs,
202 .sv_flags = SV_ABI_CLOUDABI | SV_CAPSICUM | SV_LP64,
203 .sv_set_syscall_retval = cloudabi64_set_syscall_retval,
204 .sv_fetch_syscall_args = cloudabi64_fetch_syscall_args,
205 .sv_syscallnames = cloudabi64_syscallnames,
206 .sv_schedtail = cloudabi64_schedtail,
207};
208
209INIT_SYSENTVEC(elf_sysvec, &cloudabi64_elf_sysvec);
210
211Elf64_Brandinfo cloudabi64_brand = {
212 .brand = ELFOSABI_CLOUDABI,
213 .machine = EM_X86_64,
214 .sysvec = &cloudabi64_elf_sysvec,
215 .flags = BI_CAN_EXEC_DYN,
216 .compat_3_brand = "CloudABI",
217};