Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Jan 2023 04:08:00 +0000
From:      Daniel Cervus <DanieltheDeer@outlook.com>
To:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   FreeBSD AMD64 kernel calling convention
Message-ID:  <TYWP286MB26677DF496704F87B91B5D19B8C49@TYWP286MB2667.JPNP286.PROD.OUTLOOK.COM>

next in thread | raw e-mail | index | archive | help
--_000_TYWP286MB26677DF496704F87B91B5D19B8C49TYWP286MB2667JPNP_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

  Hi, everyone. I=92m learning AMD64 assembly language. But seems I cannot =
find much information about FreeBSD kernel interface, does it follows the s=
ame calling convention as described in System V AMD64 ABI? Or it is like Li=
nux kernel calling convention, uses R10 instead of RCX to pass parameters?

Daniel

--_000_TYWP286MB26677DF496704F87B91B5D19B8C49TYWP286MB2667JPNP_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:sc=
hemas-microsoft-com:office:word" xmlns:m=3D"http://schemas.microsoft.com/of=
fice/2004/12/omml" xmlns=3D"http://www.w3.org/TR/REC-html40">;
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:DengXian;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:DengXian;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	text-align:justify;
	text-justify:inter-ideograph;
	font-size:10.5pt;
	font-family:DengXian;}
.MsoChpDefault
	{mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style>
</head>
<body lang=3D"ZH-CN" link=3D"blue" vlink=3D"#954F72" style=3D"word-wrap:bre=
ak-word">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span lang=3D"EN-US">&nbsp; </span><span lang=3D"EN-=
US" style=3D"font-size:11.0pt">Hi, everyone. I=92m learning AMD64 assembly =
language. But seems I cannot find much information about FreeBSD kernel int=
erface, does it follows the same calling convention
 as described in System V AMD64 ABI? Or it is like Linux kernel calling con=
vention, uses R10 instead of RCX to pass parameters?<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt"><o:p=
>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt">Dani=
el<o:p></o:p></span></p>
</div>
</body>
</html>

--_000_TYWP286MB26677DF496704F87B91B5D19B8C49TYWP286MB2667JPNP_--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?TYWP286MB26677DF496704F87B91B5D19B8C49>