From owner-dev-commits-src-main@freebsd.org Wed Sep 22 22:25:43 2021 Return-Path: Delivered-To: dev-commits-src-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 52B6E672AE8; Wed, 22 Sep 2021 22:25:43 +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 4HFCYM1cRzz3jsh; Wed, 22 Sep 2021 22:25:43 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 140C11F93B; Wed, 22 Sep 2021 22:25:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 18MMPgH7059414; Wed, 22 Sep 2021 22:25:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 18MMPgSr059413; Wed, 22 Sep 2021 22:25:42 GMT (envelope-from git) Date: Wed, 22 Sep 2021 22:25:42 GMT Message-Id: <202109222225.18MMPgSr059413@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Olivier Houchard Subject: git: 9bab18b8616b - main - libsysdecode: Decode FreeBSD32 syscalls on arm64. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cognet X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9bab18b8616bad4fa0adcd0e291903c55263640e Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for the main branch of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2021 22:25:43 -0000 The branch main has been updated by cognet: URL: https://cgit.FreeBSD.org/src/commit/?id=9bab18b8616bad4fa0adcd0e291903c55263640e commit 9bab18b8616bad4fa0adcd0e291903c55263640e Author: Olivier Houchard AuthorDate: 2021-09-22 22:22:30 +0000 Commit: Olivier Houchard CommitDate: 2021-09-22 22:24:50 +0000 libsysdecode: Decode FreeBSD32 syscalls on arm64. Add aarch64 to the list of architectures that can run 32bits FreeBSD binaries, so that truss works correctly with an arm32 binary. The same should probably be done with mips. MFC After: 1 week --- lib/libsysdecode/syscallnames.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libsysdecode/syscallnames.c b/lib/libsysdecode/syscallnames.c index 4638438964fd..fcc14886f39f 100644 --- a/lib/libsysdecode/syscallnames.c +++ b/lib/libsysdecode/syscallnames.c @@ -43,7 +43,7 @@ __FBSDID("$FreeBSD$"); static #include -#if defined(__amd64__) || defined(__powerpc64__) +#if defined(__amd64__) || defined(__powerpc64__) || defined(__aarch64__) static #include #endif @@ -73,7 +73,7 @@ sysdecode_syscallname(enum sysdecode_abi abi, unsigned int code) if (code < nitems(syscallnames)) return (syscallnames[code]); break; -#if defined(__amd64__) || defined(__powerpc64__) +#if defined(__amd64__) || defined(__powerpc64__) || defined(__aarch64__) case SYSDECODE_ABI_FREEBSD32: if (code < nitems(freebsd32_syscallnames)) return (freebsd32_syscallnames[code]);