Changeset View
Changeset View
Standalone View
Standalone View
head/sys/amd64/linux/linux_machdep.c
Show First 20 Lines • Show All 135 Lines • ▼ Show 20 Lines | |||||
int | int | ||||
linux_mprotect(struct thread *td, struct linux_mprotect_args *uap) | linux_mprotect(struct thread *td, struct linux_mprotect_args *uap) | ||||
{ | { | ||||
return (linux_mprotect_common(td, PTROUT(uap->addr), uap->len, uap->prot)); | return (linux_mprotect_common(td, PTROUT(uap->addr), uap->len, uap->prot)); | ||||
} | } | ||||
int | int | ||||
linux_madvise(struct thread *td, struct linux_madvise_args *uap) | |||||
{ | |||||
return (linux_madvise_common(td, PTROUT(uap->addr), uap->len, uap->behav)); | |||||
} | |||||
int | |||||
linux_iopl(struct thread *td, struct linux_iopl_args *args) | linux_iopl(struct thread *td, struct linux_iopl_args *args) | ||||
{ | { | ||||
int error; | int error; | ||||
LINUX_CTR(iopl); | LINUX_CTR(iopl); | ||||
if (args->level > 3) | if (args->level > 3) | ||||
return (EINVAL); | return (EINVAL); | ||||
▲ Show 20 Lines • Show All 177 Lines • Show Last 20 Lines |