From nobody Wed May 21 17:02:25 2025 X-Original-To: freebsd-emulation@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 4b2d5Q5Yrbz5wCTd for ; Wed, 21 May 2025 17:02:34 +0000 (UTC) (envelope-from mothcompute@protonmail.com) Received: from mail-24428.protonmail.ch (mail-24428.protonmail.ch [109.224.244.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "protonmail.com", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4b2d5P6CM9z3fLs for ; Wed, 21 May 2025 17:02:33 +0000 (UTC) (envelope-from mothcompute@protonmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=tiR7pWnJ; spf=pass (mx1.freebsd.org: domain of mothcompute@protonmail.com designates 109.224.244.28 as permitted sender) smtp.mailfrom=mothcompute@protonmail.com; dmarc=pass (policy=quarantine) header.from=protonmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1747846951; x=1748106151; bh=YCV4aVcAnktD0z2PueYLwI5zZTvJKPldAxbvOIn1YHE=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector: List-Unsubscribe:List-Unsubscribe-Post; b=tiR7pWnJmJ/aTV2CulwDb8m173yXxr8TJ+Y4xm4ymhjkko36LoBJGbRCETKo2haGx NO8XFxuafWMwzqLIYzgIUPXYSsOd40yVPQg/n2fDeR0FKfHIcyOECJqomhJI/aB66R 4iDC+zSRroG8MkWsdi8INrcQwEPbSGNT0fiOop3jmBbsY86gtqhywg+A775bh8Wldo SRBlnVgb8K5GQUWtP0Q2Zdn5mklLGT4hWTqg+cCxoSsVZoILQkjHeI2SLSNyJPw90l AZ61eOpt5z1lZFyUxEsRegRC2NzTrtTjTKAqiwaAEQrhnA5xrBwtUcOZ3SwBzU+x8W C7v8nP7Eskd2A== Date: Wed, 21 May 2025 17:02:25 +0000 To: "freebsd-emulation@FreeBSD.org" From: mothcompute Subject: XNU syscall numbers Message-ID: Feedback-ID: 39171008:user:proton X-Pm-Message-ID: db8099465690ffc35af30362dfe9fb1049161857 List-Id: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4b2d5P6CM9z3fLs X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.96 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.96)[-0.963]; DMARC_POLICY_ALLOW(-0.50)[protonmail.com,quarantine]; R_DKIM_ALLOW(-0.20)[protonmail.com:s=protonmail3]; R_SPF_ALLOW(-0.20)[+ip4:109.224.244.0/24]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[109.224.244.28:from]; FREEMAIL_FROM(0.00)[protonmail.com]; ASN(0.00)[asn:29676, ipnet:109.224.244.0/22, country:GB]; FREEMAIL_ENVFROM(0.00)[protonmail.com]; MISSING_XM_UA(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; TO_DN_EQ_ADDR_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-emulation@FreeBSD.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[protonmail.com:+] I've been looking into writing a module for FreeBSD that adds a sysentvec f= or XNU syscalls, but XNU syscall numbers contain two fields so syscall numb= ers can be as many as 26 bits long. Does FreeBSD have some mechanism to 'fi= x' the syscall number before dispatching it to a sysent, and if not, what w= ould be the best way to go about implementing this without slowing down exi= sting ABIs?