From: Xiaotian Wu <wuxiaotian@loongson.cn>
To: grub-devel@gnu.org
Cc: git@xen0n.name, development@efficientek.com,
daniel.kiper@oracle.com, Xiaotian Wu <wuxiaotian@loongson.cn>,
Zhou Yang <zhouyang@loongson.cn>
Subject: [PATCH v7 01/10] PE: Add LoongArch definitions
Date: Thu, 4 Aug 2022 21:01:35 +0800 [thread overview]
Message-ID: <20220804130143.9406-2-wuxiaotian@loongson.cn> (raw)
In-Reply-To: <20220804130143.9406-1-wuxiaotian@loongson.cn>
Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
Signed-off-by: Zhou Yang <zhouyang@loongson.cn>
---
include/grub/efi/pe32.h | 36 ++++++++++++++++++++----------------
1 file changed, 20 insertions(+), 16 deletions(-)
diff --git a/include/grub/efi/pe32.h b/include/grub/efi/pe32.h
index 0ed8781f0..de56edef6 100644
--- a/include/grub/efi/pe32.h
+++ b/include/grub/efi/pe32.h
@@ -77,6 +77,8 @@ struct grub_pe32_coff_header
#define GRUB_PE32_MACHINE_X86_64 0x8664
#define GRUB_PE32_MACHINE_ARMTHUMB_MIXED 0x01c2
#define GRUB_PE32_MACHINE_ARM64 0xAA64
+#define GRUB_PE32_MACHINE_LOONGARCH32 0x6232
+#define GRUB_PE32_MACHINE_LOONGARCH64 0x6264
#define GRUB_PE32_MACHINE_RISCV32 0x5032
#define GRUB_PE32_MACHINE_RISCV64 0x5064
@@ -283,22 +285,24 @@ struct grub_pe32_fixup_block
#define GRUB_PE32_FIXUP_ENTRY(type, offset) (((type) << 12) | (offset))
-#define GRUB_PE32_REL_BASED_ABSOLUTE 0
-#define GRUB_PE32_REL_BASED_HIGH 1
-#define GRUB_PE32_REL_BASED_LOW 2
-#define GRUB_PE32_REL_BASED_HIGHLOW 3
-#define GRUB_PE32_REL_BASED_HIGHADJ 4
-#define GRUB_PE32_REL_BASED_MIPS_JMPADDR 5
-#define GRUB_PE32_REL_BASED_ARM_MOV32A 5
-#define GRUB_PE32_REL_BASED_RISCV_HI20 5
-#define GRUB_PE32_REL_BASED_SECTION 6
-#define GRUB_PE32_REL_BASED_REL 7
-#define GRUB_PE32_REL_BASED_ARM_MOV32T 7
-#define GRUB_PE32_REL_BASED_RISCV_LOW12I 7
-#define GRUB_PE32_REL_BASED_RISCV_LOW12S 8
-#define GRUB_PE32_REL_BASED_IA64_IMM64 9
-#define GRUB_PE32_REL_BASED_DIR64 10
-#define GRUB_PE32_REL_BASED_HIGH3ADJ 11
+#define GRUB_PE32_REL_BASED_ABSOLUTE 0
+#define GRUB_PE32_REL_BASED_HIGH 1
+#define GRUB_PE32_REL_BASED_LOW 2
+#define GRUB_PE32_REL_BASED_HIGHLOW 3
+#define GRUB_PE32_REL_BASED_HIGHADJ 4
+#define GRUB_PE32_REL_BASED_MIPS_JMPADDR 5
+#define GRUB_PE32_REL_BASED_ARM_MOV32A 5
+#define GRUB_PE32_REL_BASED_RISCV_HI20 5
+#define GRUB_PE32_REL_BASED_SECTION 6
+#define GRUB_PE32_REL_BASED_REL 7
+#define GRUB_PE32_REL_BASED_ARM_MOV32T 7
+#define GRUB_PE32_REL_BASED_RISCV_LOW12I 7
+#define GRUB_PE32_REL_BASED_RISCV_LOW12S 8
+#define GRUB_PE32_REL_BASED_LOONGARCH32_MARK_LA 8
+#define GRUB_PE32_REL_BASED_LOONGARCH64_MARK_LA 8
+#define GRUB_PE32_REL_BASED_IA64_IMM64 9
+#define GRUB_PE32_REL_BASED_DIR64 10
+#define GRUB_PE32_REL_BASED_HIGH3ADJ 11
struct grub_pe32_symbol
{
--
2.35.1
next prev parent reply other threads:[~2022-08-04 13:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-04 13:01 [PATCH v7 00/10] Add support for LoongArch Xiaotian Wu
2022-08-04 13:01 ` Xiaotian Wu [this message]
2022-08-04 13:01 ` [PATCH v7 02/10] Add LoongArch definitions Xiaotian Wu
2022-08-04 13:01 ` [PATCH v7 03/10] LoongArch: Add setjmp implementation Xiaotian Wu
2022-08-04 13:01 ` [PATCH v7 04/10] LoongArch: Add early startup code Xiaotian Wu
2022-08-04 13:01 ` [PATCH v7 05/10] LoongArch: Add stubs for Linux loading commands Xiaotian Wu
2022-08-04 13:01 ` [PATCH v7 06/10] LoongArch: Add awareness for LoongArch relocations Xiaotian Wu
2022-08-04 13:01 ` [PATCH v7 07/10] LoongArch: Add auxiliary files Xiaotian Wu
2022-08-04 13:01 ` [PATCH v7 08/10] LoongArch: Add to build system Xiaotian Wu
2022-08-04 13:01 ` [PATCH v7 09/10] LoongArch: Support new relocation types Xiaotian Wu
2022-08-04 13:01 ` [PATCH v7 10/10] tests: add support for LoongArch Xiaotian Wu
2022-08-05 4:58 ` Glenn Washburn
2022-08-08 8:08 ` Xiaotian Wu
2022-08-08 22:39 ` Glenn Washburn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220804130143.9406-2-wuxiaotian@loongson.cn \
--to=wuxiaotian@loongson.cn \
--cc=daniel.kiper@oracle.com \
--cc=development@efficientek.com \
--cc=git@xen0n.name \
--cc=grub-devel@gnu.org \
--cc=zhouyang@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.