aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ntb/ntb_transport.c
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2020-10-23 14:15:58 +0000
committerMark Johnston <markj@FreeBSD.org>2020-10-23 14:15:58 +0000
commit97441fab87c9c816963ac3f220185f6526e194ed (patch)
tree78fc771d2eb90f1f5791f3e97f8ef8134e3578fc /sys/dev/ntb/ntb_transport.c
parent1c7481377c7aca0261382636819e8a8ab886c247 (diff)
downloadsrc-97441fab87c9c816963ac3f220185f6526e194ed.tar.gz
src-97441fab87c9c816963ac3f220185f6526e194ed.zip
ntb: Fix an assertion to permit >= 32 doorbells
MFC after: 1 week Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc.
Notes
Notes: svn path=/head/; revision=366968
Diffstat (limited to 'sys/dev/ntb/ntb_transport.c')
-rw-r--r--sys/dev/ntb/ntb_transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ntb/ntb_transport.c b/sys/dev/ntb/ntb_transport.c
index e6e630229a31..d6bccfb0f08c 100644
--- a/sys/dev/ntb/ntb_transport.c
+++ b/sys/dev/ntb/ntb_transport.c
@@ -357,7 +357,7 @@ ntb_transport_attach(device_t dev)
spad_count = ntb_spad_count(dev);
db_bitmap = ntb_db_valid_mask(dev);
db_count = flsll(db_bitmap);
- KASSERT(db_bitmap == (1 << db_count) - 1,
+ KASSERT(db_bitmap == ((uint64_t)1 << db_count) - 1,
("Doorbells are not sequential (%jx).\n", db_bitmap));
if (nt->mw_count == 0) {