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

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