aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2022-09-16 14:36:03 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2022-09-19 15:35:50 +0200
commit8ca302e86d685fa05b16e2b208888243da319941 (patch)
tree042c4f9c557dc21cd33a2cb434f4cb617d214bea /include
parenta5300c4949b8d4de2d34bedfaed66793f48ec948 (diff)
downloadqboot-master.zip
qboot-master.tar.gz
qboot-master.tar.bz2
Place setup_data at location specified by hostHEADmaster
QEMU places setup_data at a particular location, which cannot be relocated due to it containing self references in absolute address terms. For this reason, it supplies the intended location in FW_CFG_SETUP_ADDR. That is what is used in the option ROMs provided by QEMU, use this too in qboot. This also has the effect of removing the 8k limit on the copied size, since the header is copied to the right location from the beginning. Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Message-Id: <20220916133603.693135-1-Jason@zx2c4.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linuxboot.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linuxboot.h b/include/linuxboot.h
index 6e865f0..e04c234 100644
--- a/include/linuxboot.h
+++ b/include/linuxboot.h
@@ -10,7 +10,6 @@ struct linuxboot_args {
/* Input */
uint32_t cmdline_size, vmlinuz_size, initrd_size;
- uint8_t header[8192];
};
bool parse_bzimage(struct linuxboot_args *args);