Next: Notes on PC, Up: Examples [Contents][Index]
It is preferred that the structures used for communication between the bootloader and the OS image conform to chosen ABI for a given architecture. If it is not possible then GCC ‘__attribute__ ((__packed__))’ (or anything else which has similar meaning for chosen C compiler) have to be added to relevant structures definitions to avoid spurious, in this case, padding and alignment.