Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2018 17:04:27 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334168 - head/sys/vm
Message-ID:  <201805241704.w4OH4Ro1085645@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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_



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805241704.w4OH4Ro1085645>