Re: [SOLVED] Syscalls from Assembly
Re: [SOLVED] Syscalls from Assembly
- Subject: Re: [SOLVED] Syscalls from Assembly
- From: Alexander von Below via Darwin-kernel <email@hidden>
- Date: Sun, 2 Aug 2020 20:07:58 +0200
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
> <email@hidden>:
>
> 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/a40f36e48f91cb16d915c1193c3846f2317114f5/Chapter 7/fileio.S#L21
>
> 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/a449c6a3b8014d9406c2ddbdc81795da24aa7443/bsd/kern/syscalls.master#L733)
> 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 (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden