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