From d94ecbea0c04fd645e77f56d184669928bbe6b39 Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Mon, 30 Aug 1993 08:09:54 +0000 Subject: [PATCH] Reinstalled reboot code --- src/drv/drvAb.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/drv/drvAb.c b/src/drv/drvAb.c index f0e9182da..841495706 100644 --- a/src/drv/drvAb.c +++ b/src/drv/drvAb.c @@ -295,6 +295,7 @@ #include /* library for task support */ #include /* library for semaphore support */ #include +#include #include /* library for watchdog timer support */ #include /* library for ring buffer support */ #include @@ -331,8 +332,8 @@ int level; return(ab_io_report(level)); } -/* forward reference for ioc_reboot */ -int ioc_reboot(); +/* forward reference for ab_reboot_hook */ +int ab_reboot_hook(); static long init() { @@ -1288,6 +1289,7 @@ ab_driver_init() if (abCOSId) td(abCOSId); abCOSId = taskSpawn(ABCOS_NAME,ABCOS_PRI,ABCOS_OPT,ABCOS_STACK,ab_bi_cos_simulator); taskwdInsert(abCOSId,NULL,NULL); + rebootHookAdd(ab_reboot_hook); } return(0); } @@ -2330,9 +2332,9 @@ int status; } } -/* ioc_reboot - routine to call when IOC is rebooted with a control-x */ +/* ab_reboot_hook - routine to call when IOC is rebooted with a control-x */ -int ioc_reboot(boot_type) +int ab_reboot_hook(boot_type) int boot_type; { short i;