diff --git a/lib/libc/tests/sys/Makefile b/lib/libc/tests/sys/Makefile --- a/lib/libc/tests/sys/Makefile +++ b/lib/libc/tests/sys/Makefile @@ -2,9 +2,7 @@ .include -.if ${MACHINE_CPUARCH} != "aarch64" && ${MACHINE_CPUARCH} != "riscv" ATF_TESTS_C+= brk_test -.endif ATF_TESTS_C+= cpuset_test ATF_TESTS_C+= errno_test ATF_TESTS_C+= queue_test diff --git a/lib/libsys/brk.2 b/lib/libsys/brk.2 --- a/lib/libsys/brk.2 +++ b/lib/libsys/brk.2 @@ -62,7 +62,6 @@ and .Fn sbrk depending on its configuration. -This is always the case on the aarch64 and riscv architectures. .Ef .Pp The @@ -165,10 +164,17 @@ function appeared in .At v7 . .Fx 11.0 -introduced the arm64 and riscv architectures which do not support +introduced the arm64 and riscv architectures which did not support .Fn brk or .Fn sbrk . +As of +.Fx 15.0 +.Fn brk +and +.Fn sbrk +are available for all architectures and are provided for backwards +compatibility only. .Sh BUGS Mixing .Fn brk diff --git a/sys/vm/vm_unix.c b/sys/vm/vm_unix.c --- a/sys/vm/vm_unix.c +++ b/sys/vm/vm_unix.c @@ -68,7 +68,6 @@ int freebsd14_break(struct thread *td, struct freebsd14_break_args *uap) { -#if !defined(__aarch64__) && !defined(__riscv) uintptr_t addr; int error; @@ -77,9 +76,6 @@ if (error == 0) td->td_retval[0] = addr; return (error); -#else /* defined(__aarch64__) || defined(__riscv) */ - return (ENOSYS); -#endif /* defined(__aarch64__) || defined(__riscv) */ } #endif