Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178151157
D46953.1796124925.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D46953.1796124925.diff
View Options
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
+compatability 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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 1, 11:35 AM (22 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42124016
Default Alt Text
D46953.1796124925.diff (1 KB)
Attached To
Mode
D46953: break(2): allow on aarch64 and riscv
Attached
Detach File
Event Timeline