[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fix offset granularity

From: Egeyar Bagcioglu
Subject: Re: Fix offset granularity
Date: Mon, 12 Oct 2020 22:21:04 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0

On 10/12/20 2:02 PM, Jose E. Marchesi wrote:
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.


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)
  ios_flush (ios io, ios_off offset)
-  return io->dev_if->flush (io->dev, offset);
+  return io->dev_if->flush (io->dev, offset / 8);
Ooops, good catch :)
OK for master.

Pushed! :)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]