Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159840130
D43931.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
991 B
Referenced Files
None
Subscribers
None
D43931.diff
View Options
diff --git a/sys/x86/xen/pv.c b/sys/x86/xen/pv.c
--- a/sys/x86/xen/pv.c
+++ b/sys/x86/xen/pv.c
@@ -335,7 +335,7 @@
#endif
static void
-fixup_console(caddr_t kmdp)
+fixup_console(void)
{
struct xen_platform_op op = {
.cmd = XENPF_get_dom0_console,
@@ -346,10 +346,19 @@
struct vbe_fb vbe;
} *fb = NULL;
int size;
+ caddr_t kmdp;
+
+ kmdp = preload_search_by_type("elf kernel");
+ if (kmdp == NULL)
+ kmdp = preload_search_by_type("elf64 kernel");
+ if (kmdp == NULL) {
+ xc_printf("Unable to find kernel metadata\n");
+ return;
+ }
size = HYPERVISOR_platform_op(&op);
if (size < 0) {
- xc_printf("Failed to get dom0 video console info: %d\n", size);
+ xc_printf("Failed to get video console info: %d\n", size);
return;
}
@@ -486,7 +495,7 @@
else
strlcpy(bootmethod, "BIOS", sizeof(bootmethod));
- fixup_console(kmdp);
+ fixup_console();
} else {
/* Parse the extra boot information given by Xen */
if (start_info->cmdline_paddr != 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jun 19, 4:43 PM (13 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34089829
Default Alt Text
D43931.diff (991 B)
Attached To
Mode
D43931: x86/xen: remove parameter from fixup_console()
Attached
Detach File
Event Timeline
Log In to Comment