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 <yu...@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 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel