diff options
| author | Bibo Mao <maobibo@loongson.cn> | 2025-04-30 17:47:37 +0800 |
|---|---|---|
| committer | Song Gao <gaosong@loongson.cn> | 2025-06-10 15:00:48 +0800 |
| commit | 4332a641e220ca969810fac12b25cbf2037f7c3f (patch) | |
| tree | 4864a48c39c31d623b5cdf34fddb4b46fbff8e94 /include | |
| parent | e7788da9860c97920c19fa1150806186513ef256 (diff) | |
| download | focaccia-qemu-4332a641e220ca969810fac12b25cbf2037f7c3f.tar.gz focaccia-qemu-4332a641e220ca969810fac12b25cbf2037f7c3f.zip | |
hw/loongarch/virt: Remove global variables about initrd
Global variables initrd_offset and initrd_size records loading information about initrd, it can be moved to structure loongarch_boot_info. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20250430094738.1556670-2-maobibo@loongson.cn> Signed-off-by: Song Gao <gaosong@loongson.cn>
Diffstat (limited to 'include')
| -rw-r--r-- | include/hw/loongarch/boot.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/loongarch/boot.h b/include/hw/loongarch/boot.h index b3b870df1f..27399de99c 100644 --- a/include/hw/loongarch/boot.h +++ b/include/hw/loongarch/boot.h @@ -102,6 +102,8 @@ struct loongarch_boot_info { const char *kernel_cmdline; const char *initrd_filename; uint64_t a0, a1, a2; + uint64_t initrd_addr; + uint64_t initrd_size; }; extern struct memmap_entry *memmap_table; |