summaryrefslogtreecommitdiff
path: root/pci-arbiter/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'pci-arbiter/main.c')
-rw-r--r--pci-arbiter/main.c27
1 files changed, 8 insertions, 19 deletions
diff --git a/pci-arbiter/main.c b/pci-arbiter/main.c
index b2c37f79..510e7dbc 100644
--- a/pci-arbiter/main.c
+++ b/pci-arbiter/main.c
@@ -102,17 +102,6 @@ pci_device_close (void *d)
return 0;
}
-static void
-pci_device_shutdown (mach_port_t dosync_handle)
-{
- // Free all libpciaccess resources
- pci_system_cleanup ();
-
- ports_destroy_right (&pci_control_port);
-
- netfs_shutdown (FSYS_GOAWAY_FORCE);
-}
-
static struct machdev_device_emulation_ops pci_arbiter_emulation_ops = {
NULL,
NULL,
@@ -131,7 +120,7 @@ static struct machdev_device_emulation_ops pci_arbiter_emulation_ops = {
NULL,
NULL,
NULL,
- pci_device_shutdown,
+ NULL,
};
int
@@ -203,19 +192,19 @@ main (int argc, char **argv)
{
error_t err;
mach_port_t bootstrap;
- mach_port_t disk_server_task;
+ mach_port_t next_task;
pthread_t t, nt;
file_t underlying_node = MACH_PORT_NULL;
/* Parse options */
alloc_file_system (&fs);
argp_parse (netfs_runtime_argp, argc, argv, 0, 0, 0);
- disk_server_task = fs->params.disk_server_task;
+ next_task = fs->params.next_task;
- if (disk_server_task != MACH_PORT_NULL)
+ if (next_task != MACH_PORT_NULL)
{
machdev_register (&pci_arbiter_emulation_ops);
- machdev_trivfs_init (argc, argv, disk_server_task, "pci", "/servers/bus/pci", &bootstrap);
+ machdev_trivfs_init (argc, argv, next_task, "pci", NULL /* _SERVERS_BUS "pci" */, &bootstrap);
machdev_device_init ();
err = pthread_create (&t, NULL, machdev_server, NULL);
if (err)
@@ -242,7 +231,7 @@ main (int argc, char **argv)
if (err)
error (1, err, "Starting the PCI system");
- if (disk_server_task != MACH_PORT_NULL)
+ if (next_task != MACH_PORT_NULL)
{
void *run_server(void *arg) {
machdev_trivfs_server(bootstrap);
@@ -255,7 +244,7 @@ main (int argc, char **argv)
/* Timer started, quickly do all these next, before we call rump_init */
}
- if (disk_server_task == MACH_PORT_NULL)
+ if (next_task == MACH_PORT_NULL)
underlying_node = netfs_startup (bootstrap, O_READ);
/* Create the root node first */
@@ -263,7 +252,7 @@ main (int argc, char **argv)
if (err)
error (1, err, "Creating the root node");
- if (disk_server_task != MACH_PORT_NULL)
+ if (next_task != MACH_PORT_NULL)
pcifs_startup (bootstrap, O_READ);
err = init_file_system (fs);