Date: Wed, 31 Jan 2024 13:03:04 +0800 From: Lin Lee <leelin2602@gmail.com> To: freebsd-riscv@freebsd.org, Mitchell Horne <mhorne@freebsd.org> Subject: Re: A little bit wondering about how a syscall works Message-ID: <f2213278-0807-4a36-ab90-6d2a9555fc8c@Spark> In-Reply-To: <9bfbdbe2-ff30-4c2f-abf3-2763aa433107@freebsd.org> References: <9204b5c5-63bc-4c29-af19-1f1bb85f74e8@Spark> <8f66f3ed-2a49-4ebc-89eb-66c53e6d22bb@Spark> <9bfbdbe2-ff30-4c2f-abf3-2763aa433107@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--65b9d48d_3c9f4828_4d5 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 --65b9d48d_3c9f4828_4d5 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline <html xmlns=3D=22http://www.w3.org/1999/xhtml=22> <head> <title></title> </head> <body> <div name=3D=22messageBodySection=22> <div dir=3D=22auto=22>Hello Mitchell,<br /> <br /> Thank you for your kindly responding.<br /> <br /> Now I have still a question, when does the function cpu=5Ffetch=5Fsyscall= =5Fargs be called=3F&=23160;<br /> <br /> As the previous letter mentions, I traced the code and entered the elf=5F= machdep.c.<br /> <br /> I have no idea if there are something to do between elf=5Fmachdep.c and s= ystem calll.<br /> <br /> If not, when(how) the cpu=5Ffetch=5Fsyscall=5Fargs is called=3F<br /> <br /> Thank you very much.</div> </div> <div name=3D=22messageSignatureSection=22><br /> <div class=3D=22match=46ont=22>Best Regards, <div dir=3D=22auto=22>Lin Lee</div> </div> </div> <div name=3D=22messageReplySection=22>On Jan 31, 2024 at 1:17 AM +0800, M= itchell Horne <mhorne=40freebsd.org>, wrote:<br /> <blockquote type=3D=22cite=22 style=3D=22border-left-color: grey; border-= left-width: thin; border-left-style: solid; margin: 5px 5px;padding-left:= 10px;=22><br /> <div>Mitchell</div> </blockquote> </div> </body> </html> --65b9d48d_3c9f4828_4d5--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f2213278-0807-4a36-ab90-6d2a9555fc8c>