Message ID | 20220202223528.1260154-2-laurent@vivier.eu (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | m68k: virt: add a firmware to the virt machine (petit boot) | expand |
diff --git a/hw/m68k/bootinfo.h b/hw/m68k/bootinfo.h index adbf0c5521e5..94c97a71fa07 100644 --- a/hw/m68k/bootinfo.h +++ b/hw/m68k/bootinfo.h @@ -48,12 +48,12 @@ stw_phys(as, base, id); \ base += 2; \ stw_phys(as, base, \ - (sizeof(struct bi_record) + strlen(string) + 2) & ~1); \ + (sizeof(struct bi_record) + strlen(string) + 4) & ~3); \ base += 2; \ for (i = 0; string[i]; i++) { \ stb_phys(as, base++, string[i]); \ } \ stb_phys(as, base++, 0); \ - base = (parameters_base + 1) & ~1; \ + base = (parameters_base + 4) & ~3; \ } while (0) #endif
This is checked by petitboot. Signed-off-by: Laurent Vivier <laurent@vivier.eu> --- hw/m68k/bootinfo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)