diff options
Diffstat (limited to 'c/src/lib/libbsp/m68k/efi68k/startup/efi68k_wd.c')
-rw-r--r-- | c/src/lib/libbsp/m68k/efi68k/startup/efi68k_wd.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/c/src/lib/libbsp/m68k/efi68k/startup/efi68k_wd.c b/c/src/lib/libbsp/m68k/efi68k/startup/efi68k_wd.c deleted file mode 100644 index 0ba0ec1499..0000000000 --- a/c/src/lib/libbsp/m68k/efi68k/startup/efi68k_wd.c +++ /dev/null @@ -1,45 +0,0 @@ -/* - *------------------------------------------------------------------- - * - * This file contains the subroutines necessary to initalize - * and maintain the MAX791 based watchdog timer used on efi68k - * - * This file has been created by John S. Gwynne for the efi68k - * project. - * - * The license and distribution terms for this file may in - * the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - *------------------------------------------------------------------ - * - * $Id$ - */ -#include <bsp.h> - -void wd_interrupt(void) { - /* toggle WDI of the MAX791. A more sophisticated routine - can be inserted into the exception table after booting. */ - - /* 3 changes guaranty a pulse independent of initial state */ - *MCR |= OUT1; - *MCR &= ~OUT1; - *MCR |= OUT1; -} - -/* _catchWDint is the interrupt front-end */ -extern void _catchWDint(); -asm(" .text\n\ - .align 2\n\ - .globl _catchWDint\n\ -_catchWDint:\n\ - lea %sp@(4),%sp /* pop return address */\n\ - moveml %d0-%d7/%a0-%a6,%sp@- /* save registers */\n\ - jbsr wd_interrupt\n\ - moveml %sp@+,%d0-%d7/%a0-%a6 \n\ - rte\n\ - "); - -void watch_dog_init(void) { - set_vector(_catchWDint, WD_ISR_LEVEL+24, 0); -} |