The branch main has been updated by mhorne:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=7dcddacafaf0e5afffb1c93105f5e31a2a7a6742

commit 7dcddacafaf0e5afffb1c93105f5e31a2a7a6742
Author:     Mitchell Horne <[email protected]>
AuthorDate: 2021-01-11 00:30:41 +0000
Commit:     Mitchell Horne <[email protected]>
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
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to