mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Patrick Oppenlander <patrick.oppenlander@gmail.com>
To: Rich Felker <dalias@libc.org>
Cc: musl@lists.openwall.com
Subject: Re: [PATCH] arm asm for vfork
Date: Mon, 30 Apr 2018 12:32:53 +1000	[thread overview]
Message-ID: <CAEg67G=gyD9qT7dKbKEDu7htxUD3br4PGuAL8Q7CN-=s5Hxisg@mail.gmail.com> (raw)
In-Reply-To: <20180430020944.GF1392@brightrain.aerifal.cx>

You're right, it's not particularly pleasant. I have an MIMXRT1050-EVK
board which is what this is for -- it's a 600MHz Cortex-M7 with a
32MiB DRAM for about $80USD. More than enough to run my kernel and a
few other bits and pieces for now even with the overhead of copying
the program text.

Are there plans for fdpic in musl as soon as GCC supports it?

SVC is just a name change from SWI. Old habits die hard I guess. In my
brain SWI makes more sense as it really is an interrupt and not a
call.

I won't bother resubmitting a patch for that though.

Patrick




On Mon, Apr 30, 2018 at 12:09 PM, Rich Felker <dalias@libc.org> wrote:
> On Mon, Apr 30, 2018 at 11:36:22AM +1000, patrick.oppenlander@gmail.com wrote:
>> From: Patrick Oppenlander <patrick.oppenlander@gmail.com>
>>
>> ---
>>  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


  reply	other threads:[~2018-04-30  2:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-30  1:36 patrick.oppenlander
2018-04-30  1:36 ` patrick.oppenlander
2018-04-30  2:09   ` Rich Felker
2018-04-30  2:32     ` Patrick Oppenlander [this message]
2018-07-18  2:20       ` Patrick Oppenlander
2018-07-18  2:35         ` Rich Felker
2018-07-18  4:14           ` Patrick Oppenlander
2018-09-06 15:02             ` Patrick Oppenlander
2018-09-06 15:19               ` Rich Felker
2018-09-07  2:05                 ` Rich Felker
2018-09-07  6:29                   ` Patrick Oppenlander
2018-07-18 13:44         ` Christopher Friedt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEg67G=gyD9qT7dKbKEDu7htxUD3br4PGuAL8Q7CN-=s5Hxisg@mail.gmail.com' \
    --to=patrick.oppenlander@gmail.com \
    --cc=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).