Fix incorrect assertion.

MFC after:	3 days
This commit is contained in:
np 2011-03-05 03:01:14 +00:00
parent 0540c331c7
commit 51b104cc2a

View File

@ -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