/* * 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 * for more details. * * Copyright (C) 2007 Cavium Networks */ #include <asm/asm.h> #include <asm/regdef.h> #define SAVE_REG(r) sd $r, -32768+6912-(32-r)*8($0) NESTED(octeon_wdt_nmi_stage2, 0, sp) .set push .set noreorder .set noat /* 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. */ SAVE_REG(0) SAVE_REG(1) SAVE_REG(2) SAVE_REG(3) SAVE_REG(4) SAVE_REG(5) SAVE_REG(6) SAVE_REG(7) SAVE_REG(8) SAVE_REG(9) SAVE_REG(10) SAVE_REG(11) SAVE_REG(12) SAVE_REG(13) SAVE_REG(14) SAVE_REG(15) SAVE_REG(16) SAVE_REG(17) SAVE_REG(18) SAVE_REG(19) SAVE_REG(20) SAVE_REG(21) SAVE_REG(22) SAVE_REG(23) SAVE_REG(24) SAVE_REG(25) SAVE_REG(26) SAVE_REG(27) SAVE_REG(28) SAVE_REG(29) SAVE_REG(30) SAVE_REG(31) /* Set the stack to begin right below the registers */ li sp, -32768+6912-32*8 /* Load the address of the third stage handler */ dla a0, octeon_wdt_nmi_stage3 /* Call the third stage handler */ jal a0 /* a0 is the address of the saved registers */ move a0, sp /* Loop forvever if we get here. */ 1: b 1b nop .set pop END(octeon_wdt_nmi_stage2) <tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table> <table class='tabs'><tr><td> <a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&id=60fdcfa5ca271a6ee20b7d49312a3408a4e05d0f'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/i2c/i2c.h?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/include/dt-bindings/i2c/i2c.h?h=nds-private-remove&id=60fdcfa5ca271a6ee20b7d49312a3408a4e05d0f'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/include/dt-bindings/i2c/i2c.h?h=nds-private-remove&id=60fdcfa5ca271a6ee20b7d49312a3408a4e05d0f'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/include/dt-bindings/i2c/i2c.h?h=nds-private-remove&id=60fdcfa5ca271a6ee20b7d49312a3408a4e05d0f'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/i2c/i2c.h'> <input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='60fdcfa5ca271a6ee20b7d49312a3408a4e05d0f'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&id=60fdcfa5ca271a6ee20b7d49312a3408a4e05d0f'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/include?h=nds-private-remove&id=60fdcfa5ca271a6ee20b7d49312a3408a4e05d0f'>include</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/dt-bindings?h=nds-private-remove&id=60fdcfa5ca271a6ee20b7d49312a3408a4e05d0f'>dt-bindings</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/i2c?h=nds-private-remove&id=60fdcfa5ca271a6ee20b7d49312a3408a4e05d0f'>i2c</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/i2c/i2c.h?h=nds-private-remove&id=60fdcfa5ca271a6ee20b7d49312a3408a4e05d0f'>i2c.h</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/i2c/i2c.h?h=nds-private-remove&id=60fdcfa5ca271a6ee20b7d49312a3408a4e05d0f&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>