qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v6 05/17] hw/loongarch: Init efi_system_table


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v6 05/17] hw/loongarch: Init efi_system_table
Date: Fri, 8 Mar 2024 09:33:49 +0100
User-agent: Mozilla Thunderbird

On 7/3/24 17:48, Song Gao wrote:
Add init_systab and set boot_info->a2

Signed-off-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20240301093839.663947-6-gaosong@loongson.cn>
---
  hw/loongarch/boot.c         | 22 +++++++++++++++++
  include/hw/loongarch/boot.h | 48 +++++++++++++++++++++++++++++++++++++
  2 files changed, 70 insertions(+)


diff --git a/include/hw/loongarch/boot.h b/include/hw/loongarch/boot.h
index 3275c1e295..65ad406f02 100644
--- a/include/hw/loongarch/boot.h
+++ b/include/hw/loongarch/boot.h
@@ -8,6 +8,54 @@
  #ifndef HW_LOONGARCH_BOOT_H
  #define HW_LOONGARCH_BOOT_H
+/* UEFI 2.10 */
+#define EFI_SYSTEM_TABLE_SIGNATURE       0x5453595320494249
+#define EFI_2_100_SYSTEM_TABLE_REVISION  ((2<<16) | (100))
+#define EFI_SPECIFICATION_VERSION        EFI_SYSTEM_TABLE_REVISION
+#define EFI_SYSTEM_TABLE_REVISION        EFI_2_100_SYSTEM_TABLE_REVISION
+
+#define FW_VERSION 0x1
+#define FW_PATCHLEVEL 0x0
+
+typedef struct {
+    uint8_t b[16];
+} efi_guid_t __attribute__((aligned(8)));

QEMU_ALIGNED(8)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]