sfcc: Fix accidental spinning
authorvisa <visa@openbsd.org>
Mon, 17 Jan 2022 14:17:48 +0000 (14:17 +0000)
committervisa <visa@openbsd.org>
Mon, 17 Jan 2022 14:17:48 +0000 (14:17 +0000)
commit5b34a885329af67197d3b3dd8710f33654ec1bf7
tree72d87bbf365194cfc2c83fd51b52f2854c9029e0
parent7f144f4ceabe13eb54795db3c1858c4ab25a96d4
sfcc: Fix accidental spinning

Adjust end condition so that sfcc_cache_wbinv_range() would not spin
when (pa + len) is not cache line aligned.

While here, fix parameter types of sfcc_cache_wbinv_range() as
suggested by kettenis@.

OK kettenis@ (earlier version), miod@
sys/arch/riscv64/dev/sfcc.c