Re: [PATCH] isa_{read,write}{w,l} fixed

Alan Cox (alan@lxorguk.ukuu.org.uk)
Fri, 11 Feb 2000 18:55:28 +0000 (GMT)


> I'm pretty sure it's a reasonably safe assumption gcc doesn't reorder members
> of structs as long as they are naturally aligned - otherwise I assume structs
> used for DMA would need to be fixed, too ?

Structure padding is arch specific. For example u16 is 2 byte aligned on m68k
4 byte aligned on x86 and god knows how its aligned on an S/390

-
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/