From nobody Thu Mar 07 01:06:49 2024 X-Original-To: dev-commits-src-main@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 4Tqrjj4CL4z5CJ2W; Thu, 7 Mar 2024 01:06:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tqrjj3Cj7z4nbH; Thu, 7 Mar 2024 01:06:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709773609; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0uK724dUJzhfNzXLOZ0+ksQ3g3G/tBgMN8y3faPg/+w=; b=JLj+RCdROdPZjVvDw7dg9GvuBvLrCRYIqDm9RrVWV1uyEdpBOHjmJSYLxwwjFSEbSvivnU IuSajlesvUpTVal7zr/ne3gQKqLrhg46gDjOndMH2SSoErD1n2X5jeCV77HpB526DBQuXE QGeYNkiF3oi+ZWR4wvVnAC1eC7lOkyYUVg+LXYf6aCrgHp6ZX0AlS3RcfouTl+gn5zx/TQ +FsN8hH0Nt5HzXd7yfJUueezPuMNAq155gx4gQ1lvDuxuV3q+RVz1CTfDRzEz2miwJz+I/ ixDfHwO20jt5XtFjl0La6nQX2oF5/ZqZ32/x+8sFXBSXQ/A6yZIX1GIhASbONg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709773609; a=rsa-sha256; cv=none; b=cqeXHBBS80r5tLHYQiImoz5YLRd13fxCYs2MePWaHVf5M3VLbQe2pZcb7gSsuczan2jM93 5OZPWAjK6ykXisC0H6TKYnWsLvmVkOqSDz9c5R4AAySGYmrGYR8kYzS6wukoKMexbzvR72 YN8D87yfwZp9Cj4n3B5fGExNe1IhacZjYT4NcCq5DLhNqFPfthAm2OjUp+qTvD66Dz1/HP KkLgZuXYVG6l3hNzEE8KL3JjPKkPqu42CdWmlriuO5E3OTOhzaqer1wcyi08Gj1BxkUXTv F8STjkzVqnUuAYhNdlKliNqV1yO2vSY9lk2NTK8HAQ6GdG5brRswJ6fNlfdBFw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709773609; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0uK724dUJzhfNzXLOZ0+ksQ3g3G/tBgMN8y3faPg/+w=; b=Lm84FjfJ5oiFM28TfjIFQuiq51XYW4PXAfl1KHY8UYdZIlJbkia9ohll6hu8UhhBgVtCJl xY1+I1+CFD4XUqCKrh2F5Kr2MyEkt9PVjPsCRqO3mF2M2CsMZDRGQvDKoBSZhNJf6NE8Yg ohAsbEPLK6Mdu618QILLprYjGXbo/6CD7WhuGnGBgI/QUAhn6wr0FOr5kuYxqXBkjFirgR oHtzLFZolx8KNiVkthngSeEpDvjf1qBNsRHMW0Ny8XwJNGBDMNbpJmfFfw451KL1fyNdbX KrQKtKeFrD2Kkna6oLRt0ricAHQMwHZYzfFqDhg0YXcZG3T7YQghMbmhKAH+pQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Tqrjj2kkyz1CsB; Thu, 7 Mar 2024 01:06:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42716nXS006617; Thu, 7 Mar 2024 01:06:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42716nQm006614; Thu, 7 Mar 2024 01:06:49 GMT (envelope-from git) Date: Thu, 7 Mar 2024 01:06:49 GMT Message-Id: <202403070106.42716nQm006614@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Brooks Davis Subject: git: 39a15d747007 - main - syscall(2): make i386 less of an outlier List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 39a15d747007b934cc515d6151595055d8262828 Auto-Submitted: auto-generated The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=39a15d747007b934cc515d6151595055d8262828 commit 39a15d747007b934cc515d6151595055d8262828 Author: Brooks Davis AuthorDate: 2024-03-07 00:59:07 +0000 Commit: Brooks Davis CommitDate: 2024-03-07 00:59:07 +0000 syscall(2): make i386 less of an outlier Unlike other architectures, i386 only defined syscall() and not _syscall() or __sys_syscall(). The syscall() function then invoked the desired system call directly rather than invoking syscall(2). Keep the latter as it's marginally more efficent, but also create the conventional _syscall() and __sys_syscall() stubs. This avoids the need to special case syscall(2) in the symbol list generation in libsys. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44235 --- lib/libsys/i386/syscall.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libsys/i386/syscall.S b/lib/libsys/i386/syscall.S index 9eaf193c1d7a..bed7156e28ac 100644 --- a/lib/libsys/i386/syscall.S +++ b/lib/libsys/i386/syscall.S @@ -44,4 +44,6 @@ ENTRY(syscall) ret END(syscall) +PSEUDO(syscall) + .section .note.GNU-stack,"",%progbits