The following patch is to make ios_flush handle the difference in
offset granularity between IO spaces and IO devices.
2020-10-11 Egeyar Bagcioglu <egeyar@gmail.com>
* libpoke/ios.c (ios_flush): Divide the offset by 8 before
passing it
to io->dev_if->flush which accepts offsets in the granularity
of bytes.
Regards,
Ege
diff --git a/libpoke/ios.c b/libpoke/ios.c
index 0b7d8369..3471336e 100644
--- a/libpoke/ios.c
+++ b/libpoke/ios.c
@@ -1521,5 +1521,5 @@ ios_size (ios io)
int
ios_flush (ios io, ios_off offset)
{
- return io->dev_if->flush (io->dev, offset);
+ return io->dev_if->flush (io->dev, offset / 8);
}