From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from resqmta-h2p-567408.sys.comcast.net (resqmta-h2p-567408.sys.comcast.net [IPv6:2001:558:fd02:2446::8]) by sourceware.org (Postfix) with ESMTPS id DFA263858D20 for ; Wed, 10 Apr 2024 13:15:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DFA263858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=comcast.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=comcast.net ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DFA263858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:558:fd02:2446::8 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712754923; cv=none; b=wKwu4EZq+QpOLWz5hgkGgfiex2kjcjIgCm0OgQaznxRYhCEOhyscekrnoYCCDbYyHClJ/svwgezC2HAPwLJ0PIrRq+VC07gfaWt4xjftaV2wot1jvXgYhk/P4zDpUc9EFFhX+WKs3ZXJ/6231UDYduN3QoJelm7rOQDasMrUJpo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712754923; c=relaxed/simple; bh=25dPTUzMieTGapiIxEltutBkpCGAkZ0kq3fvvShpQa0=; h=DKIM-Signature:Mime-Version:Subject:From:Date:Message-Id:To; b=oemX78AyDJwvdyxQwYygptdx8m8nKwQ5UmDYUJmEs58aXSASiYPSIMTIbu6ACEa3O2RA0uA36ZufhAYnQy/gPaVRMkmn13EmgQmETa79lrZswwYOhIvI6wf9+HQ8CejZSyCzCMdBFUrwXA1T9p54eYHvPoexek2Ndt1Rep9G9+c= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from resomta-h2p-555030.sys.comcast.net ([96.102.179.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 256/256 bits) (Client did not present a certificate) by resqmta-h2p-567408.sys.comcast.net with ESMTPS id uWzarsdb8nxi3uXnLrdQXa; Wed, 10 Apr 2024 13:15:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1712754919; bh=sk2hbtC8QsnysQOoCct0JzqAAB4r0bK/MyKrat7BATk=; h=Received:Received:Content-Type:Mime-Version:Subject:From:Date: Message-Id:To:Xfinity-Spam-Result; b=WOJPcZrrlMt065bLs2pQfZCq1P6oeeh1CRfaay9utw55yHNHxwrwHWlIkHCpWqtkf fibtaxxjjaGp3u4BKYfFTmAZt8e32Km54RSmietSw6EaNaiFT6sGDo1ymIiHgyPPME 0UiodwycGmNsLTTUi9FTFd6DNYnHgsek295bJBrQiUN8Y4FsWpKZv76IkJsVpBFdQz 7ZLCYeLNMnZo6xVBTYj9ceSx34rghwwZQpqZuY9tmqrJRfaqNjB6xxALvoD8nHJQaM q0/z93Zhbf0pfPRGvGgKlxyjWdqfJFNzhvX3zCbv4jWL5/m0Zzy+i3IoOc2W0dYPQG NYlAIwB/sxoTw== Received: from smtpclient.apple ([73.60.223.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 256/256 bits) (Client did not present a certificate) by resomta-h2p-555030.sys.comcast.net with ESMTPSA id uXnIrOyiYvlonuXnJrddaH; Wed, 10 Apr 2024 13:15:18 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.8\)) Subject: Re: [RFC] Linux system call builtins From: Paul Koning In-Reply-To: Date: Wed, 10 Apr 2024 09:15:16 -0400 Cc: gcc@gcc.gnu.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Matheus Afonso Martins Moreira X-Mailer: Apple Mail (2.3696.120.41.1.8) X-CMAE-Envelope: MS4xfLHpBz+iErwvJvhDdgboNdEstyvD9jZudSD5QWtBGixgsG1zPXrCU9vtXsmwofdOmvqzUwKT9ozLjT2mmyyMiapryCZBu0PE/2IifvVDyn2/mwkQwgcK 4KzSV447Uh0fNsYE48iWpMWx8WIOmdKrmX1A2neHgal4ITRCjbwujaydj6icyYCdtobyBGGdzS3PFSdWRoIN94LEhCHdbSiyVYoGuQ1BOB99f7k3zX5GUnW7 X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > On Apr 9, 2024, at 9:48 PM, Matheus Afonso Martins Moreira via Gcc = wrote: >=20 > ... > MIPS calling conventions work like this: >=20 >> mips/n32,64 a0 a1 a2 a3 a4 a5 >> mips/o32 a0 a1 a2 a3 ... >> mips/o32 args5-8 are passed on the stack Yes, for regular function calls, but at least in the case of NetBSD, not = for syscalls. They have a somewhat odd calling convention that doesn't = match any of the normal function call ABIs, though it's similar. paul