Date: Mon, 11 Jan 2021 16:23:22 GMT From: Mitchell Horne <mhorne@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 7dcddacafaf0 - main - cgem: update 64-bit check Message-ID: <202101111623.10BGNMK9090966@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=7dcddacafaf0e5afffb1c93105f5e31a2a7a6742 commit 7dcddacafaf0e5afffb1c93105f5e31a2a7a6742 Author: Mitchell Horne <mhorne@FreeBSD.org> AuthorDate: 2021-01-11 00:30:41 +0000 Commit: Mitchell Horne <mhorne@FreeBSD.org> CommitDate: 2021-01-11 16:15:32 +0000 cgem: update 64-bit check The cgem(4) driver was updated to support 64-bit bus addressing in facdd1cd2045. However, the committed version determines this in an un-idiomatic way. Change the compile-time conditional to check BUS_SPACE_MAXADDR, rather than comparing int and pointer sizes. Reported by: jrtc27 --- sys/dev/cadence/if_cgem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/cadence/if_cgem.c b/sys/dev/cadence/if_cgem.c index 77337e977dcc..81fc39b831af 100644 --- a/sys/dev/cadence/if_cgem.c +++ b/sys/dev/cadence/if_cgem.c @@ -81,7 +81,7 @@ __FBSDID("$FreeBSD$"); #include <dev/extres/clk/clk.h> #endif -#if INTPTR_MAX == INT64_MAX +#if BUS_SPACE_MAXADDR > BUS_SPACE_MAXADDR_32BIT #define CGEM64 #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101111623.10BGNMK9090966>