From nobody Thu Jan 19 04:08:00 2023 X-Original-To: freebsd-questions@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 4Ny8HT2ntqz2sxCN for ; Thu, 19 Jan 2023 04:08:05 +0000 (UTC) (envelope-from DanieltheDeer@outlook.com) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01olkn2046.outbound.protection.outlook.com [40.92.98.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ny8HS12h7z3nZw for ; Thu, 19 Jan 2023 04:08:04 +0000 (UTC) (envelope-from DanieltheDeer@outlook.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=outlook.com header.s=selector1 header.b=DJeRP4Ak; spf=pass (mx1.freebsd.org: domain of DanieltheDeer@outlook.com designates 40.92.98.46 as permitted sender) smtp.mailfrom=DanieltheDeer@outlook.com; dmarc=pass (policy=none) header.from=outlook.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CmuOA60dmx3ZB1xy37mNpXu7UnV3ATyu30av32tBKDaxRKpUIdsZ8x3AXN51dzF29Tp4gbdTlrgxn2JjJsmgiELZxgVHuEsJy/7ZcvCrxHmQWTjaQXH4/OesXoCqWcupADd6lpxWAQif9J57jCK9+Nx0w18V5kgNPuADvFWcvKHDl5ndPkBxS3SkMrzOimhrsEmpo+Caa3+pubkes5DAM+gc+4W3kCOs6egkJcVsftp0Z5pZ8TmTcADYJBV4ySGNnPeFDrCTu9S2EmNDcmuPtmpFSBL5XbcjwZBfKE2ldnSwWlWoUhnF9Xdg94/0o9u71D6awtZ+orHbOoPtkVn1hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mL1Zy7voQi4TpQ7Y1bDpddAyDTFoaRYJFsyKOFuSo6U=; b=NiBOI5cTMhizyKuOsDMnDefsOZFK/pZwcrXgTx+IUuEgzccg7nNwcYay4F88LePP5Is/I6MqYSC36JLhEN2GivNg0iPI8DBohEK2hffwZsTOZAVVRYDm93uSVv/+kad4O0BDuOHMe7UE3MTb67U8zIYwIBdLnPcfVYNWTId8sMLkHPwOEwLuqN3Sj6u4hSV5PpbWfGGxrptUpiEuzYCAnKB0F39Jypyl/MrNshftzXxM+7zuLZtWw07R0pjE4AFchyFwd+vROaUgcpmwfp7N0HO0O3PKCoocRzumzpz0fE20a7vx71LBdTnY54rXl/Zu8c+/973W5mMBaDvqyWO3Ww== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mL1Zy7voQi4TpQ7Y1bDpddAyDTFoaRYJFsyKOFuSo6U=; b=DJeRP4Ak8sO3XdcQh8leLBmvk9aPI/pcBUTKXs2rUR2oSXvrp5edV5fu7CM3jCGJ6SChKclFNpsDUvyfE6pqIOdDuTfbl4k4nSW0qiM4sUKU6is0+CiX7f0ktEr80f8ZytAs0/5zeVsJy4gcAChocgbzxOaHkvpOqx6BwfeeHLJW7Y/5SzPoiOGsYAUmYm3LdiGBglkFJVXhm+WBe2H23RgBtykAycDLN86sKgbGKsnU7vKLdRNjO1dDW6XL7LGTU7Xfjy1BCnRvnsI1J3uDOlAXa3B6VuIiUl86XhO9TyBdUetNnRsF2NbCyk3YYIL1Gf9PLgz354L00VK03KF0Ig== Received: from TYWP286MB2667.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:24e::7) by OS3P286MB1663.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:160::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.25; Thu, 19 Jan 2023 04:08:00 +0000 Received: from TYWP286MB2667.JPNP286.PROD.OUTLOOK.COM ([fe80::6e81:4236:1cca:c27e]) by TYWP286MB2667.JPNP286.PROD.OUTLOOK.COM ([fe80::6e81:4236:1cca:c27e%9]) with mapi id 15.20.6002.024; Thu, 19 Jan 2023 04:08:00 +0000 From: Daniel Cervus To: "freebsd-questions@freebsd.org" Subject: FreeBSD AMD64 kernel calling convention Thread-Topic: FreeBSD AMD64 kernel calling convention Thread-Index: AQHZK7jQnl2WLptDKkW7hfnKAwLlOQ== Date: Thu, 19 Jan 2023 04:08:00 +0000 Message-ID: Accept-Language: en-US, zh-CN Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-tmn: [eKql2jUmqVUl4Lruv0pCRTRapMrcI/Wu] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: TYWP286MB2667:EE_|OS3P286MB1663:EE_ x-ms-office365-filtering-correlation-id: 0a787bae-b490-414e-dd1e-08daf9d2c135 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: tbatsvJW4ERjJ46XvvjNIhMpQxnJV4bq3XAyeUitzbX9ChJdBDdGWkWgDC64iAeC981DuW/Uzq7YoPNiM4WIydsRgGcraDokPI0wC6Xo6FHh79l12sGAiu8YZ9OASyN4aF4yirXNLKm6mMX47A1PWuv1iNKSSSqTD50HGgwYXySSKup468HZX53DP1FXCn4YulRUrPDfvZ+tZ919fw0UiYYSI8in2FnVM0Xgy/CRyHLNvM2EbMQW0iYRH0rsxrom1AOxgtS/4FV5/mcdQvA9QfeIoBHxfu0ybiANTY5Xsy/Yi49apiwIf+F4PeSqEzvPlGVx1ropUvS4ZEzhcb/yl3hQya9PqfS9PrYH6/P8ngZ/TPXdCloabFUbB2CMpbMDfA8D99AQtRjbpFPYb8H8xrHrCiedjKqZTpk2Kp7q0/PzMwTLhPa8vXaX+PQUlI1odF1A5JBOyz3vX4CxX1Tay1Wqf4pS37aGkllZdK7249gUxTDPVSPRMcQdI2Z0B+k2cpjsetvUWANEu9+5ucsK4CC7ZCwo3+Di+xblOv71nylbvaIaIWFCit64q+JnMroWbqBS7IbUD/FI6pQ6juEq7xB9c/J0v8SfMbT8zRg6zoI= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?c0ij6eOGzT24fmqByQDNEqMfzuBdivubsgVTayBarHaZempQxEDcxRcb?= =?Windows-1252?Q?QPUYOW5ltLMOouYkw/jcel3NRt9/P9tiO585x/fAGzTFaSxAo48yn8b0?= =?Windows-1252?Q?BhXVQhJnv+j/WIuJ7fblSRID9h5JhpE+WU0UEGBIM7m5s47nszixCx/I?= =?Windows-1252?Q?au+/t0rnGgaDzbHc29LXXcPZ0WepXvaLBr6tJZOamSC7fQfY5sU/B1Bm?= =?Windows-1252?Q?yR0VZmvPc1W2mBp9yovpCxJjIShjph+RHKqYBPW7eqKapwlgMfZqkeii?= =?Windows-1252?Q?da+bmEdn/zQYhwPyid3hc7QeLT8X6EIReTPP3ODXlaFVt6tVPekI7pPi?= =?Windows-1252?Q?H1sn9R+DoS//HwexgoRyfOjTguvF/Xv9JcXU1uuVH3sxqM3jqn3ajkhG?= =?Windows-1252?Q?ldSZQHePa4DLwSsCcLz2WWDs1hUE8r/oElGnuFNhpLZGOqQ6Rg6cdhUR?= =?Windows-1252?Q?tq+y7M/e6bE6iwEHPQdGfIbsUu053fmD+F3XQ1AdSnuEq0TQJlDLeXvC?= =?Windows-1252?Q?vQiljHcUgEy+mVqUvlzY9l1c9pcyrxua5EMGpR28DPlTK1visOfKE3nq?= =?Windows-1252?Q?lZh5MkLmenMn2qqouvOO9DUBwWZx2C5uQkRY+58hZjs4ZJht5GuFWJWN?= =?Windows-1252?Q?XyXBbsD8wAVYsODiZuZ+Q0aUqrYWALT8N/A62skG0aJLGd8VWl/ENdcf?= =?Windows-1252?Q?T4uj2NZJR2Z6gAdw6lvExGa9QEhgkjQE7cTOptuEO5rBggz/2MzhziQq?= =?Windows-1252?Q?n66QSlNxhekRHy1O9iqI/QqxDJPNVdJotn/U1bAiRlw1PBKVJF6fWpko?= =?Windows-1252?Q?YgJfPJplCKyD9aqiBQSrt1UcDZLqnc4c08HiGULcKMpI33sTvrIM6a2R?= =?Windows-1252?Q?BB6UxCAoBrTetFwExgvKKO2udr/qEIM2RjUMm5ZphRd/27TTyA2hmo+o?= =?Windows-1252?Q?0nnuQ8QJIgnSy688ALbKiizrlNygZRaOyvezw859ukFVmHS0cRMu7xub?= =?Windows-1252?Q?YAxlGEjAZIGobJJKoEH9vMnoZu9iQJyUxNZAkOA698rA05wEGUf9I5Jm?= =?Windows-1252?Q?UVOonUhER2lz4Z8xfW9BxIlHI75QSDbTVwxC/rP/xVDr7LslvIht2mYO?= =?Windows-1252?Q?3M/2bqCFeKqqOq2yUuGtmAlwWyVFzAjgl72CQ977qysGBjWBJws1v/mM?= =?Windows-1252?Q?xhyDlx7lNTrwUTU6V8+dM6EpVwWJq+8FnWdHM2lwwaMXItCFFFs1DTrT?= =?Windows-1252?Q?SRKzog+9+NbZzJJgGuxkRutLQOGZn8ZIIvRqP14psy/7r1m1qkH89BKL?= =?Windows-1252?Q?eoLFUor81IQRybLOL+nFMvwr2K/Mz5wy1JHUTokUf1z0hg+OonAiVHr/?= =?Windows-1252?Q?dkZ5ANA4JqJ7ji6GZLcJn1IFwEY9xPWF0ug=3D?= Content-Type: multipart/alternative; boundary="_000_TYWP286MB26677DF496704F87B91B5D19B8C49TYWP286MB2667JPNP_" List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TYWP286MB2667.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 0a787bae-b490-414e-dd1e-08daf9d2c135 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jan 2023 04:08:00.5858 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3P286MB1663 X-Spamd-Result: default: False [-4.17 / 15.00]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[outlook.com,none]; R_DKIM_ALLOW(-0.20)[outlook.com:s=selector1]; R_SPF_ALLOW(-0.20)[+ip4:40.92.0.0/15]; NEURAL_HAM_SHORT(-0.18)[-0.176]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_EQ_ADDR_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; FREEMAIL_ENVFROM(0.00)[outlook.com]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_IN_DNSWL_NONE(0.00)[40.92.98.46:from]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_FROM(0.00)[outlook.com]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[outlook.com:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[outlook.com:dkim] X-Rspamd-Queue-Id: 4Ny8HS12h7z3nZw X-Spamd-Bar: ---- X-ThisMailContainsUnwantedMimeParts: N --_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

  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?

 

Dani= el

--_000_TYWP286MB26677DF496704F87B91B5D19B8C49TYWP286MB2667JPNP_--