summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-07-25 13:18:27 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-07-25 13:18:27 +0200
commit5940c0d7f4db686ed405b2212295079af6a942f6 (patch)
treeaa1092edd6c62b952e1b367edb113a569194ed77
parent4a1016f130b6f2065d3f088325e5fb0b2997ae12 (diff)
Update to new libmachdev initialization API
We do not support running as a bootstrap translator yet.
-rw-r--r--machdev.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/machdev.c b/machdev.c
index 8a2cc2302..5e6fb841e 100644
--- a/machdev.c
+++ b/machdev.c
@@ -2,11 +2,13 @@
#include <hurd/machdev.h>
#include <hurd/machdevdde.h>
+static mach_port_t bootstrap = MACH_PORT_NULL;
+
void machdev_init(void)
{
machdevdde_register_net();
machdev_device_init();
- machdev_trivfs_init();
+ machdev_trivfs_init(MACH_PORT_NULL, NULL, &bootstrap);
}
void machdev_run1 (void *arg)
@@ -16,5 +18,5 @@ void machdev_run1 (void *arg)
void machdev_run2(void)
{
- machdev_trivfs_server();
+ machdev_trivfs_server(bootstrap);
}