From nobody Fri Feb 02 06:14:30 2024 X-Original-To: freebsd-riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TR58f5gSRz59WTx for ; Fri, 2 Feb 2024 06:14:42 +0000 (UTC) (envelope-from leelin2602@gmail.com) Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TR58f3sb2z4VvY; Fri, 2 Feb 2024 06:14:42 +0000 (UTC) (envelope-from leelin2602@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-6e1352dd653so1079277a34.2; Thu, 01 Feb 2024 22:14:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706854481; x=1707459281; darn=freebsd.org; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=cyL51y8JZGqaNASHL8eJvSUObjBUaGka4Q5YMjlLcRo=; b=YMfSe/DLTFvd6jlGfym/eUq5zPAggpticwPN5ba2Yt/7s4E0BLgnIHiTcJB988NNIk XyqQ5Gz3b1k6ZaPE0V4IliGi6fJhTDWpLXaUgSdDTwhRun5Fn8KP/Sk3Cj43QdOJKf0O d2pht3cGhEIR7+UWORJ2CrZQkMRCEnfYafmF8Q2E4LNTOGfjS1kKY0I38LFSdbHq6wIo X5D2vY2hf702UJtUCd5RcZB33J7KFsun/ypwM8PPdWWnTmx08b65UAO7mr9HtQhc1kng 5ZRcpfjcL3bdVJic253s4lAsbBRfz0XnWE+OUjRLSBwccYie4AdFkzDCjLPBhpfNLVHI GfKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706854481; x=1707459281; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cyL51y8JZGqaNASHL8eJvSUObjBUaGka4Q5YMjlLcRo=; b=NfnGYFE+xhEHwMBUW48I6l8RbyYHX2oMv41DM278gRvewPfo6otNSOk07ij8HssWA4 7MGR8aIIIRkM/sp8UEqytpeBHzRcPmnaZSKFOr0q++qhSU7mj5eI9g4xyAGJdyd6Jv+G fwgPdEqc7qYNoiuQNLEMUgNT5PiPsvckyKFiwPizLhJcgpVVVShYukja2abVUtCPDwsc o+UFpOFDk9MCpxqQTs3MG5A7VDYzEBaBw+CSle/t7fzzxVljT1nxH9Ul22f9mc8LtHt3 f2AGsP68Q20LPmx0isr2VaLqP4eBdO2EkTHW7LRWBjXlFaZh8lXsqh7xKK2OJW/uL/lL I/hw== X-Gm-Message-State: AOJu0Yx7gWPeUZ8F57IwJtT1ojTOCfVEy7V8KpqQt8eyWJGF3gm18teE +6Nvfe1NkVMMeitO2RdoFmY8i5YveGyOAv14nk3EuvJNsGcML6qcZdfLbYTYOfM= X-Google-Smtp-Source: AGHT+IG7YXUG6q/QSmsIo7W0c4ldThcdKAkaEYrvMc+V0FqJ0bEb1O7qOiGW/OBpfTVg9geuapvhPw== X-Received: by 2002:a05:6358:7f1b:b0:176:a512:e63e with SMTP id p27-20020a0563587f1b00b00176a512e63emr1095967rwn.29.1706854480563; Thu, 01 Feb 2024 22:14:40 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCX/RbsQqYBMKardlbeS5TINOmjhW83sCe1X5Imt+50LX3qRl1tkbUnO0XcKoRUbI67DDE6QHqFn1w53WXrwWwRBOFA= Received: from [10.1.2.5] (123-193-26-19.dynamic.kbronet.com.tw. [123.193.26.19]) by smtp.gmail.com with ESMTPSA id y2-20020a63fa02000000b005d880b41598sm826592pgh.94.2024.02.01.22.14.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Feb 2024 22:14:40 -0800 (PST) Date: Fri, 2 Feb 2024 14:14:30 +0800 From: Lin Lee To: Jessica Clarke Cc: freebsd-riscv , Mitchell Horne Message-ID: In-Reply-To: <1D587966-19FD-47C9-B362-B55068665C2E@freebsd.org> References: <9204b5c5-63bc-4c29-af19-1f1bb85f74e8@Spark> <8f66f3ed-2a49-4ebc-89eb-66c53e6d22bb@Spark> <9bfbdbe2-ff30-4c2f-abf3-2763aa433107@freebsd.org> <8867a483-7e92-4579-9236-32b4a704713e@Spark> <51285fdf-dbcf-4d71-82cb-f49353db95cd@freebsd.org> <1D587966-19FD-47C9-B362-B55068665C2E@freebsd.org> Subject: Re: A little bit wondering about how a syscall works X-Readdle-Message-ID: e7d6c75d-58eb-4bb5-a684-33943af3df81@Spark List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="65bc884c_15b9bf5d_c55" X-Rspamd-Queue-Id: 4TR58f3sb2z4VvY X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] --65bc884c_15b9bf5d_c55 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Opps, it's a typo. I meant sv_fetch_syscall_args. It executes `sv_fetch_syscall_args`, then it runs system calls. It is right, isn't? Best Regards, Lin Lee On Feb 1, 2024 at 12:47 AM +0800, wrote: > > sv_fetch_syscall_args --65bc884c_15b9bf5d_c55 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Opps, it's a typo. I meant sv=5Ffetch=5Fsyscall=5Fa= rgs.

It executes =60sv=5Ffetch=5Fsyscall=5Fargs=60, then it runs system calls.= &=23160;

It is right, isn't=3F

Best Regards,
Lin Lee
On =46eb 1, 2024 at 12:47 AM +0800,= wrote:

sv=5Ffetch=5Fsyscall=5Fargs
--65bc884c_15b9bf5d_c55--