* [PATCH v2] bsd: Fix type passed for the kernel
@ 2025-03-04 18:46 Vladimir Serbinenko
2025-03-05 20:23 ` Daniel Kiper
0 siblings, 1 reply; 2+ messages in thread
From: Vladimir Serbinenko @ 2025-03-04 18:46 UTC (permalink / raw)
To: grub-devel; +Cc: Vladimir Serbinenko
FreeBSD loader always passes "elf kernel". We currently pass
"elf64 kernel" when loading 64-bit kernel. -CURRENT (HEAD) kernel
accepts only "elf kernel", older kernel accepts either.
Tested with FreeBSD and DragonFlyBSD
Reference: https://cgit.freebsd.org/src/commit/?id=b72ae900d4348118829fe04abdc11b620930c30f
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
---
grub-core/loader/i386/bsd.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/grub-core/loader/i386/bsd.c b/grub-core/loader/i386/bsd.c
index dd1024d4b..ac70dde8c 100644
--- a/grub-core/loader/i386/bsd.c
+++ b/grub-core/loader/i386/bsd.c
@@ -1876,9 +1876,7 @@ grub_cmd_freebsd (grub_extcmd_context_t ctxt, int argc, char *argv[])
grub_file_t file;
int len = is_64bit ? 8 : 4;
- err = grub_freebsd_add_meta_module (argv[0], is_64bit
- ? FREEBSD_MODTYPE_KERNEL64
- : FREEBSD_MODTYPE_KERNEL,
+ err = grub_freebsd_add_meta_module (argv[0], FREEBSD_MODTYPE_KERNEL,
argc - 1, argv + 1,
kern_start,
kern_end - kern_start);
--
2.48.1
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-05 20:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-04 18:46 [PATCH v2] bsd: Fix type passed for the kernel Vladimir Serbinenko
2025-03-05 20:23 ` Daniel Kiper
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.