Messages in this thread | | | Date | Wed, 16 Feb 2000 16:01:51 +0100 | From | Ralf Baechle <> | Subject | Re: [PATCH] isa_{read,write}{w,l} fixed |
| |
On Sun, Feb 13, 2000 at 01:30:37AM +0100, Philipp Rumpf wrote:
> > Alas, you can't. If accessing quantities of type short is exceptionally > > slow, then it may well be that the ABI decress Thou Shalt Pad. gcc has > > any ABI that actually does this ? Actually it wouldn't make sense for > an ABI to pad
> So, going from there, would it ever make sense for an ABI to pad > struct { u8 a; u8 b; u16 c; } ? > > > __attribute__(packed) to allow you to work around this. > ^ ^ > YM __attribute__((packed)). And I still claim that isn't actually required > on any architecture, and just adds unnecessary gcc-specificness.
Some architectures like certain DSPs don't actually implement char or short as 8 or 16 bit types but make all types 32 bit. While this is not of interest for the kernel itself it may make using shared memory for interfacing with such a DSP more entertaining.
Ralf
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |