git: 7dcddacafaf0 - main - cgem: update 64-bit check
Mitchell Horne
mhorne at FreeBSD.org
Mon Jan 11 16:23:23 UTC 2021
The branch main has been updated by mhorne:
URL: https://cgit.FreeBSD.org/src/commit/?id=7dcddacafaf0e5afffb1c93105f5e31a2a7a6742
commit 7dcddacafaf0e5afffb1c93105f5e31a2a7a6742
Author: Mitchell Horne <mhorne at FreeBSD.org>
AuthorDate: 2021-01-11 00:30:41 +0000
Commit: Mitchell Horne <mhorne at 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
More information about the dev-commits-src-main
mailing list