Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/linux/linux_machdep.c
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
#include <compat/linux/linux_mmap.h> | #include <compat/linux/linux_mmap.h> | ||||
#include <compat/linux/linux_util.h> | #include <compat/linux/linux_util.h> | ||||
/* DTrace init */ | /* DTrace init */ | ||||
LIN_SDT_PROVIDER_DECLARE(LINUX_DTRACE); | LIN_SDT_PROVIDER_DECLARE(LINUX_DTRACE); | ||||
/* DTrace probes */ | /* DTrace probes */ | ||||
LIN_SDT_PROBE_DEFINE0(machdep, linux_mmap2, todo); | LIN_SDT_PROBE_DEFINE0(machdep, linux_mmap2, todo); | ||||
LIN_SDT_PROBE_DEFINE0(machdep, linux_rt_sigsuspend, todo); | |||||
LIN_SDT_PROBE_DEFINE0(machdep, linux_sigaltstack, todo); | LIN_SDT_PROBE_DEFINE0(machdep, linux_sigaltstack, todo); | ||||
/* | /* | ||||
* LINUXTODO: deduplicate; linux_execve is common across archs, except that on | * LINUXTODO: deduplicate; linux_execve is common across archs, except that on | ||||
* amd64 compat linuxulator it calls freebsd32_exec_copyin_args. | * amd64 compat linuxulator it calls freebsd32_exec_copyin_args. | ||||
*/ | */ | ||||
int | int | ||||
linux_execve(struct thread *td, struct linux_execve_args *uap) | linux_execve(struct thread *td, struct linux_execve_args *uap) | ||||
▲ Show 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | return (linux_mprotect_common(td, PTROUT(uap->addr), uap->len, | ||||
uap->prot)); | uap->prot)); | ||||
} | } | ||||
int | int | ||||
linux_madvise(struct thread *td, struct linux_madvise_args *uap) | linux_madvise(struct thread *td, struct linux_madvise_args *uap) | ||||
{ | { | ||||
return (linux_madvise_common(td, PTROUT(uap->addr), uap->len, uap->behav)); | return (linux_madvise_common(td, PTROUT(uap->addr), uap->len, uap->behav)); | ||||
} | |||||
/* LINUXTODO: implement arm64 linux_rt_sigsuspend */ | |||||
int | |||||
linux_rt_sigsuspend(struct thread *td, struct linux_rt_sigsuspend_args *uap) | |||||
{ | |||||
LIN_SDT_PROBE0(machdep, linux_rt_sigsuspend, todo); | |||||
return (EDOOFUS); | |||||
} | } | ||||
/* LINUXTODO: implement arm64 linux_sigaltstack */ | /* LINUXTODO: implement arm64 linux_sigaltstack */ | ||||
int | int | ||||
linux_sigaltstack(struct thread *td, struct linux_sigaltstack_args *uap) | linux_sigaltstack(struct thread *td, struct linux_sigaltstack_args *uap) | ||||
{ | { | ||||
LIN_SDT_PROBE0(machdep, linux_sigaltstack, todo); | LIN_SDT_PROBE0(machdep, linux_sigaltstack, todo); | ||||
Show All 26 Lines |