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

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