octeon_nmi.S revision 215989
1215989Sgonzo/*- 2215989Sgonzo * Copyright (c) 2010 Oleksandr Tymoshenko 3215989Sgonzo * All rights reserved. 4215989Sgonzo * 5215989Sgonzo * Redistribution and use in source and binary forms, with or without 6215989Sgonzo * modification, are permitted provided that the following conditions 7215989Sgonzo * are met: 8215989Sgonzo * 1. Redistributions of source code must retain the above copyright 9215989Sgonzo * notice, this list of conditions and the following disclaimer. 10215989Sgonzo * 2. Redistributions in binary form must reproduce the above copyright 11215989Sgonzo * notice, this list of conditions and the following disclaimer in the 12215989Sgonzo * documentation and/or other materials provided with the distribution. 13215989Sgonzo * 14215989Sgonzo * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15215989Sgonzo * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16215989Sgonzo * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17215989Sgonzo * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18215989Sgonzo * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19215989Sgonzo * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20215989Sgonzo * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21215989Sgonzo * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22215989Sgonzo * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23215989Sgonzo * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24215989Sgonzo * SUCH DAMAGE. 25215989Sgonzo * 26215989Sgonzo * $FreeBSD: head/sys/mips/cavium/octeon_nmi.S 215989 2010-11-28 08:11:05Z gonzo $ 27215989Sgonzo */ 28215989Sgonzo 29215989Sgonzo#include <machine/asm.h> 30215989Sgonzo 31215989Sgonzo.set noreorder 32215989Sgonzo 33215989Sgonzo/* 34215989Sgonzo * Only first 128 bytes of handler is used 35215989Sgonzo */ 36215989SgonzoNESTED_NOPROFILE(octeon_wdog_nmi_handler, 32, ra) 37215989Sgonzo .set push 38215989Sgonzo .set noat 39215989Sgonzo PTR_LA k0, _C_LABEL(octeon_wdog_nmi) 40215989Sgonzo jr k0 41215989Sgonzo nop 42215989Sgonzo1: 43215989Sgonzo nop 44215989Sgonzo j 1b 45215989Sgonzo nop 46215989Sgonzo .set at 47215989SgonzoEND(octeon_wdog_nmi_handler) 48