diff options
author | np <np@FreeBSD.org> | 2011-03-05 03:01:14 +0000 |
---|---|---|
committer | np <np@FreeBSD.org> | 2011-03-05 03:01:14 +0000 |
commit | 51b104cc2a19195052ffeb6c7892270addf84331 (patch) | |
tree | c32c0cece28e32dc58278328914792cbe964ef05 | |
parent | 0540c331c796e12fd8fea170d84ef2b75bf50bbd (diff) | |
download | FreeBSD-src-51b104cc2a19195052ffeb6c7892270addf84331.zip FreeBSD-src-51b104cc2a19195052ffeb6c7892270addf84331.tar.gz |
Fix incorrect assertion.
MFC after: 3 days
-rw-r--r-- | sys/dev/cxgbe/adapter.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/cxgbe/adapter.h b/sys/dev/cxgbe/adapter.h index c0da697..da6e92e 100644 --- a/sys/dev/cxgbe/adapter.h +++ b/sys/dev/cxgbe/adapter.h @@ -70,8 +70,8 @@ static __inline uint64_t t4_bus_space_read_8(bus_space_tag_t tag, bus_space_handle_t handle, bus_size_t offset) { - KASSERT(tag == X86_BUS_SPACE_IO, - ("64-bit reads from I/O space not possible.")); + KASSERT(tag == X86_BUS_SPACE_MEM, + ("%s: can only handle mem space", __func__)); return (*(volatile uint64_t *)(handle + offset)); } @@ -80,8 +80,9 @@ static __inline void t4_bus_space_write_8(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, uint64_t value) { - KASSERT(tag == X86_BUS_SPACE_IO, - ("64-bit writes to I/O space not possible.")); + KASSERT(tag == X86_BUS_SPACE_MEM, + ("%s: can only handle mem space", __func__)); + *(volatile uint64_t *)(bsh + offset) = value; } #else |