Blame SOURCES/0085-grub-core-loader-i386-bsd.c-grub_netbsd_boot-Pass-po.patch

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