diff options
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/nvme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c index 73533da..142003c 100644 --- a/sys/dev/ic/nvme.c +++ b/sys/dev/ic/nvme.c @@ -590,7 +590,7 @@ nvme_init(void) return -1; } - bar = (struct nvme_bar *)(nvme_dev->bar[0] & ~7); + bar = PCI_BAR_MEMBASE(nvme_dev->bar[0]); KINFO("NVMe BAR0 @ 0x%p\n", bar); TAILQ_INIT(&namespaces); |