m68k: align bootinfo strings and data to 4 bytes
commit2cfa963126fe77fac034a43f986b2bf3e8fe6a4f
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 26 Sep 2022 11:39:00 +0000 (26 13:39 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Mon, 26 Sep 2022 21:37:22 +0000 (26 23:37 +0200)
tree0f27ae83441d5ec3b070a87bdc3c0b299015fe38
parentb342e56b23dc2a0a1f30e21d67d001a1d0befbf0
m68k: align bootinfo strings and data to 4 bytes

Various tools, such as kexec-tools and m68k-bootinfo, expect each
bootinfo entry to be aligned to 4 bytes, not 2 bytes. So adjust the
padding to fill this out as such.

Also, break apart the padding additions from the other field length
additions, so that it's more clear why these magic numbers are being
added, and comment them too.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20220926113900.1256630-2-Jason@zx2c4.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/m68k/bootinfo.h