From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12776 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] arm asm for vfork Date: Sun, 29 Apr 2018 22:09:44 -0400 Message-ID: <20180430020944.GF1392@brightrain.aerifal.cx> References: <20180430013622.28792-1-patrick.oppenlander@gmail.com> <20180430013622.28792-2-patrick.oppenlander@gmail.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1525054073 32128 195.159.176.226 (30 Apr 2018 02:07:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 30 Apr 2018 02:07:53 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) Cc: musl@lists.openwall.com To: patrick.oppenlander@gmail.com Original-X-From: musl-return-12792-gllmg-musl=m.gmane.org@lists.openwall.com Mon Apr 30 04:07:49 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1fCyEG-0008Ht-SI for gllmg-musl@m.gmane.org; Mon, 30 Apr 2018 04:07:48 +0200 Original-Received: (qmail 18285 invoked by uid 550); 30 Apr 2018 02:09:57 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 18261 invoked from network); 30 Apr 2018 02:09:57 -0000 Content-Disposition: inline In-Reply-To: <20180430013622.28792-2-patrick.oppenlander@gmail.com> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:12776 Archived-At: On Mon, Apr 30, 2018 at 11:36:22AM +1000, patrick.oppenlander@gmail.com wrote: > From: Patrick Oppenlander > > --- > src/process/arm/vfork.s | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > create mode 100644 src/process/arm/vfork.s > > diff --git a/src/process/arm/vfork.s b/src/process/arm/vfork.s > new file mode 100644 > index 00000000..f01fe1d0 > --- /dev/null > +++ b/src/process/arm/vfork.s > @@ -0,0 +1,12 @@ > +.syntax unified > +.global __vfork > +.weak vfork > +.type __vfork,%function > +.type vfork,%function > +__vfork: > +vfork: > + mov ip, r7 > + mov r7, 190 > + swi 0 > + mov r7, ip > + b __syscall_ret > -- > 2.17.0 Thanks. We'll need this for nommu users; right now that's not so practical but it will be once we get fdpic added. I haven't tested, but the patch looks right. Elsewhere we use svc instead of swi; not sure if that matters. Rich