| * This file is subject to the terms and conditions of the GNU General Public |
| * License. See the file "COPYING" in the main directory of this archive |
| * Copyright (C) 2007 Cavium Networks |
| #define SAVE_REG(r) sd $r, -32768+6912-(32-r)*8($0) |
| NESTED(octeon_wdt_nmi_stage2, 0, sp) |
| /* Save all registers to the top CVMSEG. This shouldn't |
| * corrupt any state used by the kernel. Also all registers |
| * should have the value right before the NMI. */ |
| /* Set the stack to begin right below the registers */ |
| /* Load the address of the third stage handler */ |
| dla a0, octeon_wdt_nmi_stage3 |
| /* Call the third stage handler */ |
| /* a0 is the address of the saved registers */ |
| /* Loop forvever if we get here. */ |
| END(octeon_wdt_nmi_stage2) |