diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-08-11 17:32:32 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-08-11 18:28:03 +0200 |
commit | 2cfbdcc66886bd4852f9e84b46fbf6bdc7d8a13e (patch) | |
tree | ca0329c48226b59684c287ef67a356fdd4b6a54e /pci-arbiter/main.c | |
parent | 9049b963b6023ef6d7bd3f8c81ef5ab1f3b43fd3 (diff) | |
download | hurd-2cfbdcc66886bd4852f9e84b46fbf6bdc7d8a13e.tar.gz hurd-2cfbdcc66886bd4852f9e84b46fbf6bdc7d8a13e.tar.bz2 hurd-2cfbdcc66886bd4852f9e84b46fbf6bdc7d8a13e.zip |
pci-arbiter, rumpdisk: Rename options for bootstrap chain
We may end up with an arbitrary series of bootstrap translators, which
can know about each other through devices, and thus do not need any
particular order except dependencies. The actual bootstrap order can
thus be arbitrary (provided it respects dependencies), so better not
hardcode it.
Diffstat (limited to 'pci-arbiter/main.c')
-rw-r--r-- | pci-arbiter/main.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pci-arbiter/main.c b/pci-arbiter/main.c index ad9ccaa9..510e7dbc 100644 --- a/pci-arbiter/main.c +++ b/pci-arbiter/main.c @@ -192,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", NULL /* _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) @@ -231,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); @@ -244,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 */ @@ -252,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); |