1 ###############################################################################
3 # MN10300 Watchdog interrupt handler
5 # Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
6 # Written by David Howells (dhowells@redhat.com)
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public Licence
10 # as published by the Free Software Foundation; either version
11 # 2 of the Licence, or (at your option) any later version.
13 ###############################################################################
14 #include <linux/sys.h>
15 #include <linux/linkage.h>
16 #include <asm/intctl-regs.h>
17 #include <asm/timer-regs.h>
18 #include <asm/frame.inc>
19 #include <linux/threads.h>
23 ###############################################################################
25 # Watchdog handler entry point
26 # - special non-maskable interrupt
28 ###############################################################################
29 .globl watchdog_handler
30 .type watchdog_handler,@function
36 mov d0,(REG_ORIG_D0,fp)
40 call watchdog_interrupt[],0 # watchdog_interrupt(regs,irq)
44 .size watchdog_handler,.-watchdog_handler
46 ###############################################################################
48 # Watchdog touch entry point
49 # - kept to absolute minimum (unfortunately, it's prototyped in linux/nmi.h so
52 ###############################################################################
53 .globl arch_touch_nmi_watchdog
54 .type arch_touch_nmi_watchdog,@function
55 arch_touch_nmi_watchdog:
58 mov watchdog_alert_counter, a0
66 .size arch_touch_nmi_watchdog,.-arch_touch_nmi_watchdog