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

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