diff options
author | George Koehler <gkoehler@cvs.openbsd.org> | 2022-10-21 21:26:50 +0000 |
---|---|---|
committer | George Koehler <gkoehler@cvs.openbsd.org> | 2022-10-21 21:26:50 +0000 |
commit | 50a0af2a43e70dc00de390c2c0d8f73169e5134d (patch) | |
tree | 7f959b74ccbcb910506348b42907fde42ab214e9 /sys/dev/softraid_raid1.c | |
parent | 459f6588f95e74ed6905b3b21532050af4faf8eb (diff) |
Change len in syncicache(_, len) from int to size_t
The powerpc64 part is under #if 0, so this change affects only macppc.
Simplify powerpc64's __syncicache (which had size_t len) and copy it
to macppc's syncicache (which had int len).
macppc was looping while ((l -= CACHELINESIZE) > 0). The loop would
be infinite if l became an unsigned type like size_t. It is simpler
to set size_t i = 0, do i += by, and loop while (i < len). It helps
that dcbst and icbi can add 2 registers, from + i.
Diffstat (limited to 'sys/dev/softraid_raid1.c')
0 files changed, 0 insertions, 0 deletions