|
|
0dc71c |
From 1cdf2c717c0f4a2efac0e5dc8b5c564f930c537a Mon Sep 17 00:00:00 2001
|
|
|
0dc71c |
From: Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
0dc71c |
Date: Fri, 28 Feb 2014 10:50:05 +0100
|
|
|
0dc71c |
Subject: [PATCH 065/143] * include/grub/i386/openbsd_bootarg.h: Add
|
|
|
0dc71c |
addr and frequency fields. * grub-core/loader/i386/bsd.c
|
|
|
0dc71c |
(grub_cmd_openbsd): Fill addr field.
|
|
|
0dc71c |
MIME-Version: 1.0
|
|
|
0dc71c |
Content-Type: text/plain; charset=UTF-8
|
|
|
0dc71c |
Content-Transfer-Encoding: 8bit
|
|
|
0dc71c |
|
|
|
0dc71c |
Suggested by: Markus Müller.
|
|
|
0dc71c |
---
|
|
|
0dc71c |
ChangeLog | 7 +++++++
|
|
|
0dc71c |
grub-core/loader/i386/bsd.c | 2 ++
|
|
|
0dc71c |
include/grub/i386/openbsd_bootarg.h | 2 ++
|
|
|
0dc71c |
3 files changed, 11 insertions(+)
|
|
|
0dc71c |
|
|
|
0dc71c |
diff --git a/ChangeLog b/ChangeLog
|
|
|
0dc71c |
index 97cf57e..f571f66 100644
|
|
|
0dc71c |
--- a/ChangeLog
|
|
|
0dc71c |
+++ b/ChangeLog
|
|
|
0dc71c |
@@ -1,5 +1,12 @@
|
|
|
0dc71c |
2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
0dc71c |
|
|
|
0dc71c |
+ * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
|
|
|
0dc71c |
+ * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
|
|
|
0dc71c |
+
|
|
|
0dc71c |
+ Suggested by: Markus Müller.
|
|
|
0dc71c |
+
|
|
|
0dc71c |
+2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
0dc71c |
+
|
|
|
0dc71c |
* grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
|
|
|
0dc71c |
if E820 failed to return any regions.
|
|
|
0dc71c |
|
|
|
0dc71c |
diff --git a/grub-core/loader/i386/bsd.c b/grub-core/loader/i386/bsd.c
|
|
|
0dc71c |
index ea0edfa..19985f0 100644
|
|
|
0dc71c |
--- a/grub-core/loader/i386/bsd.c
|
|
|
0dc71c |
+++ b/grub-core/loader/i386/bsd.c
|
|
|
0dc71c |
@@ -1646,6 +1646,7 @@ grub_cmd_openbsd (grub_extcmd_context_t ctxt, int argc, char *argv[])
|
|
|
0dc71c |
|
|
|
0dc71c |
serial.device = (GRUB_OPENBSD_COM_MAJOR << 8) | port;
|
|
|
0dc71c |
serial.speed = speed;
|
|
|
0dc71c |
+ serial.addr = grub_ns8250_hw_get_port (port);
|
|
|
0dc71c |
|
|
|
0dc71c |
grub_bsd_add_meta (OPENBSD_BOOTARG_CONSOLE, &serial, sizeof (serial));
|
|
|
0dc71c |
bootflags |= OPENBSD_RB_SERCONS;
|
|
|
0dc71c |
@@ -1656,6 +1657,7 @@ grub_cmd_openbsd (grub_extcmd_context_t ctxt, int argc, char *argv[])
|
|
|
0dc71c |
|
|
|
0dc71c |
grub_memset (&serial, 0, sizeof (serial));
|
|
|
0dc71c |
serial.device = (GRUB_OPENBSD_VGA_MAJOR << 8);
|
|
|
0dc71c |
+ serial.addr = 0xffffffff;
|
|
|
0dc71c |
grub_bsd_add_meta (OPENBSD_BOOTARG_CONSOLE, &serial, sizeof (serial));
|
|
|
0dc71c |
bootflags &= ~OPENBSD_RB_SERCONS;
|
|
|
0dc71c |
}
|
|
|
0dc71c |
diff --git a/include/grub/i386/openbsd_bootarg.h b/include/grub/i386/openbsd_bootarg.h
|
|
|
0dc71c |
index 01ca486..9ebe6b4 100644
|
|
|
0dc71c |
--- a/include/grub/i386/openbsd_bootarg.h
|
|
|
0dc71c |
+++ b/include/grub/i386/openbsd_bootarg.h
|
|
|
0dc71c |
@@ -75,6 +75,8 @@ struct grub_openbsd_bootarg_console
|
|
|
0dc71c |
{
|
|
|
0dc71c |
grub_uint32_t device;
|
|
|
0dc71c |
grub_uint32_t speed;
|
|
|
0dc71c |
+ grub_uint32_t addr;
|
|
|
0dc71c |
+ grub_uint32_t frequency;
|
|
|
0dc71c |
};
|
|
|
0dc71c |
|
|
|
0dc71c |
struct grub_openbsd_bootarg_pcibios
|
|
|
0dc71c |
--
|
|
|
0dc71c |
1.9.3
|
|
|
0dc71c |
|