Commit 713e3f72 authored by Rusty Russell's avatar Rusty Russell

lguest: always put console in PCI slot #1.

This simplifies the early probe.
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 59eba788
...@@ -2773,6 +2773,9 @@ int main(int argc, char *argv[]) ...@@ -2773,6 +2773,9 @@ int main(int argc, char *argv[])
} }
} }
/* We always have a console device, and it's always device 1. */
setup_console();
/* The options are fairly straight-forward */ /* The options are fairly straight-forward */
while ((c = getopt_long(argc, argv, "v", opts, NULL)) != EOF) { while ((c = getopt_long(argc, argv, "v", opts, NULL)) != EOF) {
switch (c) { switch (c) {
...@@ -2813,9 +2816,6 @@ int main(int argc, char *argv[]) ...@@ -2813,9 +2816,6 @@ int main(int argc, char *argv[])
verbose("Guest base is at %p\n", guest_base); verbose("Guest base is at %p\n", guest_base);
/* We always have a console device */
setup_console();
/* Initialize the (fake) PCI host bridge device. */ /* Initialize the (fake) PCI host bridge device. */
init_pci_host_bridge(); init_pci_host_bridge();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment