[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] multiboot2: preparation to add RISC-V (64-bit) support
From: |
Yuri Zaporozhets |
Subject: |
[PATCH] multiboot2: preparation to add RISC-V (64-bit) support |
Date: |
Thu, 19 Dec 2024 21:27:43 +0100 |
In preparation of adding RISC-V (64-bit) support to multiboot2:
* new file include/grub/riscv64/multiboot.h added
* MULTIBOOT2_ARCHITECTURE_RISCV64 definition added
Signed-off-by: Yuri Zaporozhets <yuriz@qrv-systems.net>
---
include/grub/riscv64/multiboot.h | 24 ++++++++++++++++++++++++
include/multiboot2.h | 1 +
2 files changed, 25 insertions(+)
create mode 100644 include/grub/riscv64/multiboot.h
diff --git a/include/grub/riscv64/multiboot.h b/include/grub/riscv64/multiboot.h
new file mode 100644
index 000000000..f4550a046
--- /dev/null
+++ b/include/grub/riscv64/multiboot.h
@@ -0,0 +1,24 @@
+/*
+ * GRUB -- GRand Unified Bootloader
+ * Copyright (C) 2002,2003,2004,2007,2008,2009 Free Software Foundation, Inc.
+ *
+ * GRUB is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * GRUB is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef GRUB_MULTIBOOT_CPU_HEADER
+#define GRUB_MULTIBOOT_CPU_HEADER 1
+
+#define MULTIBOOT2_ARCHITECTURE_CURRENT MULTIBOOT2_ARCHITECTURE_RISCV64
+
+#endif
diff --git a/include/multiboot2.h b/include/multiboot2.h
index a039aa043..7b25c793f 100644
--- a/include/multiboot2.h
+++ b/include/multiboot2.h
@@ -77,6 +77,7 @@
#define MULTIBOOT2_ARCHITECTURE_I386 0
#define MULTIBOOT2_ARCHITECTURE_MIPS32 4
+#define MULTIBOOT2_ARCHITECTURE_RISCV64 5
#define MULTIBOOT_HEADER_TAG_OPTIONAL 1
#define MULTIBOOT_LOAD_PREFERENCE_NONE 0
--
2.43.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] multiboot2: preparation to add RISC-V (64-bit) support,
Yuri Zaporozhets <=