Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Sep 2021 22:25:42 GMT
From:      Olivier Houchard <cognet@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 9bab18b8616b - main - libsysdecode: Decode FreeBSD32 syscalls on arm64.
Message-ID:  <202109222225.18MMPgSr059413@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by cognet:

URL: https://cgit.FreeBSD.org/src/commit/?id=9bab18b8616bad4fa0adcd0e291903c55263640e

commit 9bab18b8616bad4fa0adcd0e291903c55263640e
Author:     Olivier Houchard <cognet@FreeBSD.org>
AuthorDate: 2021-09-22 22:22:30 +0000
Commit:     Olivier Houchard <cognet@FreeBSD.org>
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 <kern/syscalls.c>
 
-#if defined(__amd64__) || defined(__powerpc64__)
+#if defined(__amd64__) || defined(__powerpc64__) || defined(__aarch64__)
 static
 #include <compat/freebsd32/freebsd32_syscalls.c>
 #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]);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109222225.18MMPgSr059413>