diff options
Diffstat (limited to 'sys/boot/common/misc.c')
-rw-r--r-- | sys/boot/common/misc.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/boot/common/misc.c b/sys/boot/common/misc.c index 819d4a4..bc33c53 100644 --- a/sys/boot/common/misc.c +++ b/sys/boot/common/misc.c @@ -131,3 +131,14 @@ hexdump(caddr_t region, size_t len) } pager_close(); } + +void +dev_cleanup(void) +{ + int i; + + /* Call cleanup routines */ + for (i = 0; devsw[i] != NULL; ++i) + if (devsw[i]->dv_cleanup != NULL) + (devsw[i]->dv_cleanup)(); +} |