svn commit: r334168 - head/sys/vm

Brooks Davis brooks at FreeBSD.org
Thu May 24 17:04:28 UTC 2018


Author: brooks
Date: Thu May 24 17:04:27 2018
New Revision: 334168
URL: https://svnweb.freebsd.org/changeset/base/334168

Log:
  Don't implement break(2) at all on aarch64 and riscv.
  
  This should have been done when they were removed from libc, but was
  overlooked in the runup to 11.0.  No users should exist.
  
  Approved by:	andrew
  Sponsored by:	DARPA, AFRL
  Differential Revision:	https://reviews.freebsd.org/D15539

Modified:
  head/sys/vm/vm_unix.c

Modified: head/sys/vm/vm_unix.c
==============================================================================
--- head/sys/vm/vm_unix.c	Thu May 24 16:34:06 2018	(r334167)
+++ head/sys/vm/vm_unix.c	Thu May 24 17:04:27 2018	(r334168)
@@ -65,14 +65,10 @@ struct obreak_args {
 	char *nsize;
 };
 #endif
-
-/*
- * MPSAFE
- */
-/* ARGSUSED */
 int
 sys_obreak(struct thread *td, struct obreak_args *uap)
 {
+#if !defined(__aarch64__) && !defined(__riscv__)
 	struct vmspace *vm = td->td_proc->p_vmspace;
 	vm_map_t map = &vm->vm_map;
 	vm_offset_t new, old, base;
@@ -230,6 +226,9 @@ done:
 		    VM_MAP_WIRE_USER|VM_MAP_WIRE_NOHOLES);
 
 	return (error);
+#else /* defined(__aarch64__) || defined(__riscv__) */
+	return (ENOSYS);
+#endif /* defined(__aarch64__) || defined(__riscv__) */
 }
 
 #ifndef _SYS_SYSPROTO_H_


More information about the svn-src-all mailing list