mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
e7788da986
commit
4332a641e2
2 changed files with 12 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue