|
|
23d2ea |
From 0df1a50e41fb12fbeb6709575e5f12d64ed73b66 Mon Sep 17 00:00:00 2001
|
|
|
39700a |
From: Stephane Rochoy <sheda>
|
|
|
39700a |
Date: Sun, 22 Jun 2014 01:35:52 +0200
|
|
|
27a4da |
Subject: [PATCH 085/260] * grub-core/loader/i386/bsd.c (grub_netbsd_boot):
|
|
|
23d2ea |
Pass pointer to EFI system table.
|
|
|
39700a |
|
|
|
39700a |
---
|
|
|
39700a |
ChangeLog | 5 +++++
|
|
|
39700a |
grub-core/loader/i386/bsd.c | 8 ++++++++
|
|
|
39700a |
include/grub/i386/netbsd_bootinfo.h | 7 +++++++
|
|
|
39700a |
3 files changed, 20 insertions(+)
|
|
|
39700a |
|
|
|
39700a |
diff --git a/ChangeLog b/ChangeLog
|
|
|
27a4da |
index abf8f4b27..0cdd095a4 100644
|
|
|
39700a |
--- a/ChangeLog
|
|
|
39700a |
+++ b/ChangeLog
|
|
|
39700a |
@@ -1,5 +1,10 @@
|
|
|
39700a |
2014-06-21 Stephane Rochoy <sheda>
|
|
|
39700a |
|
|
|
39700a |
+ * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
|
|
|
39700a |
+ EFI system table.
|
|
|
39700a |
+
|
|
|
39700a |
+2014-06-21 Stephane Rochoy <sheda>
|
|
|
39700a |
+
|
|
|
39700a |
* grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
|
|
|
39700a |
EFI system table physical address.
|
|
|
39700a |
|
|
|
39700a |
diff --git a/grub-core/loader/i386/bsd.c b/grub-core/loader/i386/bsd.c
|
|
|
27a4da |
index 41ef9109e..8f691e0e2 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
|
|
|
27a4da |
index e48c19b40..9b4f46041 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
|
|
|
39700a |
--
|
|
|
27a4da |
2.13.0
|
|
|
39700a |
|