diff options
author | Mitchell Horne <mhorne@FreeBSD.org> | 2021-01-11 00:30:41 +0000 |
---|---|---|
committer | Mitchell Horne <mhorne@FreeBSD.org> | 2021-01-11 16:15:32 +0000 |
commit | 7dcddacafaf0e5afffb1c93105f5e31a2a7a6742 (patch) | |
tree | 71c796110323968cd60f3a82d8d22700b8762003 /sys | |
parent | 30b68ecda84e38648511f5585a6f36b94b167f0d (diff) | |
download | src-7dcddacafaf0e5afffb1c93105f5e31a2a7a6742.tar.gz src-7dcddacafaf0e5afffb1c93105f5e31a2a7a6742.zip |
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
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/cadence/if_cgem.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |