site_archiver(a)lists.apple.com
Delivered-To: darwin-kernel(a)lists.apple.com
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=1a1hai; t=1596391681; bh=z1Ii0TvfCTjEllIYCrYLEGWSnXkjZKgLhcF6IOwIxCQ=; h=Content-Type:Mime-Version:Subject:From:Date:Message-Id:To; b=Dyjrw7Tu7jrHg6tC1kEkHnczpSoz1XA/L0rLmNsu1nn55gPOImA29fFsilfv0+9i3 xoUuITN2croGGW+ptn6RkD0HkUwAZT50J+HJF272ZEQymSVgY3LFQgcn7DWP3oNgIR m+4TTOvPJyEe7qykyIlGYWIu5+urUisIwVsGCL0sTEUZRSdxqlCiMfHBsLnt3e6yGj Cem56oBclTyal4xgjCLN9pNZgjnWrxdh0uNn+8EuL6UwyMYugBgKD2aLJZqF1Mqjuv /iI7JbWzo7zr5yqn4Fzoxyba+W6gpAVdFB6s9RqVvAebEfHZjtOXiaJ0TVvJ/T6i+Q SIkxTLwBWg2VQ==
Solved: The problem was the differing definition of AT_FDCWD in Linux and Darwin
> Am 02.08.2020 um 15:15 schrieb Alexander von Below via Darwin-kernel
> <darwin-kernel(a)lists.apple.com>:
>
> Hello Darwin-Kernel List,
>
> my suspicion is, that this is the right place to ask: I am currently trying
> to get a grip on ARM64 assembly, now that x86 as been eliminated.
>
> However, I have problems to call the openat system call:
>
> https://github.com/below/HelloSilicon/blob/a40f36e48f91cb16d915c1193c3846f2…
>
> This will return „9“ in X0, regardless of the input file name.
>
> I checked bsd/kern/syscalls.master,
> (https://github.com/apple/darwin-xnu/blob/a449c6a3b8014d9406c2ddbdc81795da24…)
> but 463 seems to be the wrong number, or maybe I am doing it wrong.
>
> The last info I have on the subject is „OS X Internals“ … which still is
> based on PPC. If you have some newer or better info, I’d appreciate that!
>
>
> Thanks
>
> Alex
>
> P.S.: I am aware that the syscall interface is considered „private and
> subject to change“. This is for academic purposes only
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Darwin-kernel mailing list (Darwin-kernel(a)lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/darwin-kernel/below%40mac.com
>
> This email sent to below(a)mac.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (Darwin-kernel(a)lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists…
This email sent to site_archiver(a)lists.apple.com
site_archiver(a)lists.apple.com
Delivered-To: darwin-kernel(a)lists.apple.com
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=1a1hai; t=1596374129; bh=/NZbtzrl1WkR0QMkuWxSqPH9sMUJEXj3IcnxEIbD1ZU=; h=From:Content-Type:Mime-Version:Subject:Message-Id:Date:To; b=FJG/vuQWS+vU0h2mYvl10MB5XNv/GEK6cfFfKxwd3rRtqeC/X+vgdy0ibjtM4l5oL jXo/woSQkJ3S11X3cLVJSSzGLSkOltsWBLwxh3rr1WYX4csheHKAnOQm4FB4TzI8u/ Psg7Mr09+ibhBHa9V42M2GzZ2airI8XyPCwFwHXtekhXNQixobm5M1euoKEEF65/D3 h/W9NuLpiDifLTRm+4HFVZyYX8+TWykLRqVV5Lk7rqIgwcX1wgiFFA9TX0MIpx03Mo 6CGwdC+P6Zqp+0tZtbThiHP89iTwi5D4Eq+uSNIdkw5m54EvpdqH9rd6weByxM5gBA VW5HJv/K2PdbQ==
Hello Darwin-Kernel List,
my suspicion is, that this is the right place to ask: I am currently trying to
get a grip on ARM64 assembly, now that x86 as been eliminated.
However, I have problems to call the openat system call:
https://github.com/below/HelloSilicon/blob/a40f36e48f91cb16d915c1193c3846f2…
This will return „9“ in X0, regardless of the input file name.
I checked bsd/kern/syscalls.master,
(https://github.com/apple/darwin-xnu/blob/a449c6a3b8014d9406c2ddbdc81795da24…)
but 463 seems to be the wrong number, or maybe I am doing it wrong.
The last info I have on the subject is „OS X Internals“ … which still is based
on PPC. If you have some newer or better info, I’d appreciate that!
Thanks
Alex
P.S.: I am aware that the syscall interface is considered „private and subject
to change“. This is for academic purposes only
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (Darwin-kernel(a)lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists…
This email sent to site_archiver(a)lists.apple.com