|
|
4fe85b |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
4fe85b |
From: Stephane Rochoy <sheda>
|
|
|
4fe85b |
Date: Sun, 22 Jun 2014 01:35:52 +0200
|
|
|
4fe85b |
Subject: [PATCH] * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass
|
|
|
4fe85b |
pointer to EFI system table.
|
|
|
4fe85b |
|
|
|
4fe85b |
---
|
|
|
4fe85b |
grub-core/loader/i386/bsd.c | 8 ++++++++
|
|
|
4fe85b |
include/grub/i386/netbsd_bootinfo.h | 7 +++++++
|
|
|
4fe85b |
ChangeLog | 5 +++++
|
|
|
4fe85b |
3 files changed, 20 insertions(+)
|
|
|
4fe85b |
|
|
|
4fe85b |
diff --git a/grub-core/loader/i386/bsd.c b/grub-core/loader/i386/bsd.c
|
|
|
4fe85b |
index 41ef9109ee1..8f691e0e2d1 100644
|
|
|
4fe85b |
--- a/grub-core/loader/i386/bsd.c
|
|
|
4fe85b |
+++ b/grub-core/loader/i386/bsd.c
|
|
|
4fe85b |
@@ -1145,6 +1145,14 @@ grub_netbsd_boot (void)
|
|
|
4fe85b |
if (err)
|
|
|
4fe85b |
return err;
|
|
|
4fe85b |
|
|
|
4fe85b |
+#ifdef GRUB_MACHINE_EFI
|
|
|
4fe85b |
+ err = grub_bsd_add_meta (NETBSD_BTINFO_EFI,
|
|
|
4fe85b |
+ &grub_efi_system_table,
|
|
|
4fe85b |
+ sizeof (grub_efi_system_table));
|
|
|
4fe85b |
+ if (err)
|
|
|
4fe85b |
+ return err;
|
|
|
4fe85b |
+#endif
|
|
|
4fe85b |
+
|
|
|
4fe85b |
{
|
|
|
4fe85b |
struct bsd_tag *tag;
|
|
|
4fe85b |
tag_buf_len = 0;
|
|
|
4fe85b |
diff --git a/include/grub/i386/netbsd_bootinfo.h b/include/grub/i386/netbsd_bootinfo.h
|
|
|
4fe85b |
index e48c19b4089..9b4f4604103 100644
|
|
|
4fe85b |
--- a/include/grub/i386/netbsd_bootinfo.h
|
|
|
4fe85b |
+++ b/include/grub/i386/netbsd_bootinfo.h
|
|
|
4fe85b |
@@ -58,6 +58,8 @@
|
|
|
4fe85b |
#define NETBSD_BTINFO_BOOTWEDGE 10
|
|
|
4fe85b |
#define NETBSD_BTINFO_MODULES 11
|
|
|
4fe85b |
#define NETBSD_BTINFO_FRAMEBUF 12
|
|
|
4fe85b |
+#define NETBSD_BTINFO_USERCONFCOMMANDS 13
|
|
|
4fe85b |
+#define NETBSD_BTINFO_EFI 14
|
|
|
4fe85b |
|
|
|
4fe85b |
struct grub_netbsd_bootinfo
|
|
|
4fe85b |
{
|
|
|
4fe85b |
@@ -146,4 +148,9 @@ struct grub_netbsd_btinfo_framebuf
|
|
|
4fe85b |
|
|
|
4fe85b |
#define GRUB_NETBSD_MAX_ROOTDEVICE_LEN 16
|
|
|
4fe85b |
|
|
|
4fe85b |
+struct grub_netbsd_btinfo_efi
|
|
|
4fe85b |
+{
|
|
|
4fe85b |
+ void *pa_systbl; /* Physical address of the EFI System Table */
|
|
|
4fe85b |
+};
|
|
|
4fe85b |
+
|
|
|
4fe85b |
#endif
|
|
|
4fe85b |
diff --git a/ChangeLog b/ChangeLog
|
|
|
4fe85b |
index abf8f4b2716..0cdd095a498 100644
|
|
|
4fe85b |
--- a/ChangeLog
|
|
|
4fe85b |
+++ b/ChangeLog
|
|
|
4fe85b |
@@ -1,3 +1,8 @@
|
|
|
4fe85b |
+2014-06-21 Stephane Rochoy <sheda>
|
|
|
4fe85b |
+
|
|
|
4fe85b |
+ * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
|
|
|
4fe85b |
+ EFI system table.
|
|
|
4fe85b |
+
|
|
|
4fe85b |
2014-06-21 Stephane Rochoy <sheda>
|
|
|
4fe85b |
|
|
|
4fe85b |
* grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
|