[haiku-development] Re: _PACKED attribute in USB_spec.h

  • From: "Ithamar R. Adema" <ithamar@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 15 Oct 2007 21:53:06 +0200

On Mon, 2007-10-15 at 21:12 +0200, Jérôme Duval wrote:
> 
> It doesn't align memory. It makes sure the data is arranged the way it
> is described by a struct, which is useful when reading from hardware
> mapped memory.
> So removing it is not an option. 

Besides that, the data arrangement is _very_ dependent on compiler
(version) used, platform etc, so if there's places where it isn't used
but should be, that's a bug ;)

Ithamar.
(Who just had to explain this to a Linux BSP supplier when we switched
to ARM EABI iso the old ABI and a driver broke because of it)



Other related posts: