diff options
Diffstat (limited to 'libmachdev')
-rw-r--r-- | libmachdev/ds_routines.c | 4 | ||||
-rw-r--r-- | libmachdev/machdev-device_emul.h | 2 | ||||
-rw-r--r-- | libmachdev/machdev.h | 2 | ||||
-rw-r--r-- | libmachdev/trivfs_server.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/libmachdev/ds_routines.c b/libmachdev/ds_routines.c index d2b5352e..c2de4b26 100644 --- a/libmachdev/ds_routines.c +++ b/libmachdev/ds_routines.c @@ -315,13 +315,13 @@ void machdev_device_init() } } -void machdev_device_shutdown() +void machdev_device_shutdown(mach_port_t dosync_handle) { int i; for (i = 0; i < num_emul; i++) { if (emulation_list[i]->shutdown) - emulation_list[i]->shutdown(); + emulation_list[i]->shutdown(dosync_handle); } } diff --git a/libmachdev/machdev-device_emul.h b/libmachdev/machdev-device_emul.h index edf79b96..7748f37f 100644 --- a/libmachdev/machdev-device_emul.h +++ b/libmachdev/machdev-device_emul.h @@ -64,7 +64,7 @@ struct machdev_device_emulation_ops recnum_t, vm_offset_t, vm_size_t); io_return_t (*writev_trap) (void *, dev_mode_t, recnum_t, io_buf_vec_t *, vm_size_t); - void (*shutdown) (void); + void (*shutdown) (mach_port_t); }; #endif /* _MACHDEV_DEVICE_EMUL_H_ */ diff --git a/libmachdev/machdev.h b/libmachdev/machdev.h index 41afe36d..8f613b35 100644 --- a/libmachdev/machdev.h +++ b/libmachdev/machdev.h @@ -30,7 +30,7 @@ void machdev_register (struct machdev_device_emulation_ops *ops); void machdev_device_init(void); -void machdev_device_shutdown(void); +void machdev_device_shutdown(mach_port_t dosync_handle); void * machdev_server(void *); error_t machdev_create_device_port (size_t size, void *result); int machdev_trivfs_init(mach_port_t bootstrap_resume_task, const char *name, const char *path, mach_port_t *bootstrap); diff --git a/libmachdev/trivfs_server.c b/libmachdev/trivfs_server.c index d1d3a71d..e3e4045d 100644 --- a/libmachdev/trivfs_server.c +++ b/libmachdev/trivfs_server.c @@ -429,7 +429,7 @@ S_startup_dosync (mach_port_t handle) ports_port_deref (inpi); /* Sync and close device(s) */ - machdev_device_shutdown (); + machdev_device_shutdown (handle); return trivfs_goaway (NULL, FSYS_GOAWAY_FORCE); } |