Re: A little bit wondering about how a syscall works

From: Lin Lee <leelin2602_at_gmail.com>
Date: Wed, 31 Jan 2024 05:03:04 UTC
Hello Mitchell,

Thank you for your kindly responding.

Now I have still a question, when does the function cpu_fetch_syscall_args be called?

As the previous letter mentions, I traced the code and entered the elf_machdep.c.

I have no idea if there are something to do between elf_machdep.c and system calll.

If not, when(how) the cpu_fetch_syscall_args is called?

Thank you very much.

Best Regards,
Lin Lee
On Jan 31, 2024 at 1:17 AM +0800, Mitchell Horne <mhorne@freebsd.org>, wrote:
>
> Mitchell