[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-m68k
Subject:    Re: [PATCH] m68k: amiflop: *ptr incremented past 0x4489
From:       Joerg Dorchain <joerg () dorchain ! net>
Date:       2009-02-13 8:07:56
Message-ID: 20090213080756.GA1008 () Redstar ! dorchain ! net
[Download RAW message or body]

On Wed, Feb 11, 2009 at 03:42:54PM +0100, Roel Kluin wrote:
> With while (*ptr++ != 0x4489) { ... } *ptr will be incremented past 0x4489
> after
> the loop.

Yes, that is on purpose. The magic bytes of 0x4489 are a sync
mark, the interesting stuff always starts afterwards. The whole
decoding routing uses the current pointer the way that it always
points to the next unprocessed position when it arrives at the
next segment of decoding. I'd rather have this consistent in the
whole driver.

Bye,

Joerg

["signature.asc" (application/pgp-signature)]
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic