aboutsummaryrefslogtreecommitdiff
path: root/pci-arbiter
diff options
context:
space:
mode:
Diffstat (limited to 'pci-arbiter')
-rw-r--r--pci-arbiter/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/pci-arbiter/main.c b/pci-arbiter/main.c
index 510e7dbc..602a545c 100644
--- a/pci-arbiter/main.c
+++ b/pci-arbiter/main.c
@@ -203,8 +203,17 @@ main (int argc, char **argv)
if (next_task != MACH_PORT_NULL)
{
+ /* We are a bootstrap process */
+
machdev_register (&pci_arbiter_emulation_ops);
machdev_trivfs_init (argc, argv, next_task, "pci", NULL /* _SERVERS_BUS "pci" */, &bootstrap);
+
+ /* Make sure we will not swap out, in case we are needed for swapping
+ back in. */
+ err = mlockall(MCL_CURRENT | MCL_FUTURE);
+ if (err)
+ error (1, errno, "cannot lock all memory");
+
machdev_device_init ();
err = pthread_create (&t, NULL, machdev_server, NULL);
if (err)