reflect the size of the new buffer like we do on arm64.
ok patrick@
-/* $OpenBSD: efiboot.c,v 1.38 2021/12/12 22:54:35 jsg Exp $ */
+/* $OpenBSD: efiboot.c,v 1.39 2022/03/22 10:32:10 kettenis Exp $ */
/*
* Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net>
if (BS->AllocatePages(AllocateAnyPages, EfiLoaderData,
EFI_SIZE_TO_PAGES(len), &addr) == EFI_SUCCESS) {
memcpy((void *)addr, fdt, fdt_get_size(fdt));
+ ((struct fdt_head *)addr)->fh_size = htobe32(len);
fdt = (void *)addr;
}