Date: Mon, 17 Oct 2022 18:02:59 GMT From: Ed Maste <emaste@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 9a86a3cd9b4c - main - truss: remove now-unused special case for MIPS Message-ID: <202210171802.29HI2xjk095055@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=9a86a3cd9b4cb75aad06effb5f17de5e92168028 commit 9a86a3cd9b4cb75aad06effb5f17de5e92168028 Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2022-10-17 17:17:12 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2022-10-17 18:02:49 +0000 truss: remove now-unused special case for MIPS Reviewed by: mhorne, imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37022 --- usr.bin/truss/syscalls.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/usr.bin/truss/syscalls.c b/usr.bin/truss/syscalls.c index 46a0c5ecc44b..ab68e079e6ea 100644 --- a/usr.bin/truss/syscalls.c +++ b/usr.bin/truss/syscalls.c @@ -1557,17 +1557,12 @@ print_sysctl(FILE *fp, int *oid, size_t len) } /* - * Convert a 32-bit user-space pointer to psaddr_t. Currently, this - * sign-extends on MIPS and zero-extends on all other architectures. + * Convert a 32-bit user-space pointer to psaddr_t by zero-extending. */ static psaddr_t user_ptr32_to_psaddr(int32_t user_pointer) { -#if defined(__mips__) - return ((psaddr_t)(intptr_t)user_pointer); -#else return ((psaddr_t)(uintptr_t)user_pointer); -#endif } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210171802.29HI2xjk095055>