qemu/include/hw/loongarch/boot.h
Song Gao d771ca1c10 hw/loongarch: Move boot functions to boot.c
Move some boot functions to boot.c and struct
loongarch_boot_info into struct LoongArchMachineState.

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20240426091551.2397867-2-gaosong@loongson.cn>
2024-04-29 10:25:56 +08:00

22 lines
506 B
C

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Definitions for LoongArch boot.
*
* Copyright (C) 2023 Loongson Technology Corporation Limited
*/
#ifndef HW_LOONGARCH_BOOT_H
#define HW_LOONGARCH_BOOT_H
struct loongarch_boot_info {
uint64_t ram_size;
const char *kernel_filename;
const char *kernel_cmdline;
const char *initrd_filename;
uint64_t a0, a1, a2;
};
void loongarch_load_kernel(MachineState *ms, struct loongarch_boot_info *info);
#endif /* HW_LOONGARCH_BOOT_H */