diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-07-25 13:18:27 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-07-25 13:18:27 +0200 |
commit | 5940c0d7f4db686ed405b2212295079af6a942f6 (patch) | |
tree | aa1092edd6c62b952e1b367edb113a569194ed77 | |
parent | 4a1016f130b6f2065d3f088325e5fb0b2997ae12 (diff) |
Update to new libmachdev initialization API
We do not support running as a bootstrap translator yet.
-rw-r--r-- | machdev.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); } |