aboutsummaryrefslogtreecommitdiff
path: root/libmachdev/ds_routines.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2021-08-11 16:27:43 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-08-11 16:29:45 +0200
commit9049b963b6023ef6d7bd3f8c81ef5ab1f3b43fd3 (patch)
treeda5c163f6e6240d9400aa36fcdf38226e5e5e023 /libmachdev/ds_routines.c
parentc654480ef67c15b2cd9e774afa65f53b32693b40 (diff)
downloadhurd-9049b963b6023ef6d7bd3f8c81ef5ab1f3b43fd3.tar.gz
hurd-9049b963b6023ef6d7bd3f8c81ef5ab1f3b43fd3.tar.bz2
hurd-9049b963b6023ef6d7bd3f8c81ef5ab1f3b43fd3.zip
libmachdev: Fix startup_dosync
We do not actually want to shut everything down. For instance, we still have to be able to start the acpi translator to perform the actual shutdown. What we however have to do is syncing the disks.
Diffstat (limited to 'libmachdev/ds_routines.c')
-rw-r--r--libmachdev/ds_routines.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmachdev/ds_routines.c b/libmachdev/ds_routines.c
index c2de4b26..ac915166 100644
--- a/libmachdev/ds_routines.c
+++ b/libmachdev/ds_routines.c
@@ -315,13 +315,13 @@ void machdev_device_init()
}
}
-void machdev_device_shutdown(mach_port_t dosync_handle)
+void machdev_device_sync()
{
int i;
for (i = 0; i < num_emul; i++)
{
- if (emulation_list[i]->shutdown)
- emulation_list[i]->shutdown(dosync_handle);
+ if (emulation_list[i]->sync)
+ emulation_list[i]->sync();
}
}