xref: /netbsd-src/sys/arch/hpcmips/vr/vr_idle.S (revision 9e1c90f43bfd0ea3fb164d2cd9a54bc98f1e0efa)
1*9e1c90f4Stsutsui/*	$NetBSD: vr_idle.S,v 1.15 2008/02/18 15:19:57 tsutsui Exp $	*/
2ae6160e2Stakemura
3ae6160e2Stakemura/*
4ae6160e2Stakemura * Copyright (c) 1992, 1993
5ae6160e2Stakemura *	The Regents of the University of California.  All rights reserved.
6ae6160e2Stakemura *
7ae6160e2Stakemura * This code is derived from software contributed to Berkeley by
8ae6160e2Stakemura * Digital Equipment Corporation and Ralph Campbell.
9ae6160e2Stakemura *
10ae6160e2Stakemura * Redistribution and use in source and binary forms, with or without
11ae6160e2Stakemura * modification, are permitted provided that the following conditions
12ae6160e2Stakemura * are met:
13ae6160e2Stakemura * 1. Redistributions of source code must retain the above copyright
14ae6160e2Stakemura *    notice, this list of conditions and the following disclaimer.
15ae6160e2Stakemura * 2. Redistributions in binary form must reproduce the above copyright
16ae6160e2Stakemura *    notice, this list of conditions and the following disclaimer in the
17ae6160e2Stakemura *    documentation and/or other materials provided with the distribution.
18aad01611Sagc * 3. Neither the name of the University nor the names of its contributors
19ae6160e2Stakemura *    may be used to endorse or promote products derived from this software
20ae6160e2Stakemura *    without specific prior written permission.
21ae6160e2Stakemura *
22ae6160e2Stakemura * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23ae6160e2Stakemura * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24ae6160e2Stakemura * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25ae6160e2Stakemura * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26ae6160e2Stakemura * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27ae6160e2Stakemura * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28ae6160e2Stakemura * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29ae6160e2Stakemura * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30ae6160e2Stakemura * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31ae6160e2Stakemura * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32ae6160e2Stakemura * SUCH DAMAGE.
33ae6160e2Stakemura *
34ae6160e2Stakemura * Copyright (C) 1989 Digital Equipment Corporation.
35ae6160e2Stakemura * Permission to use, copy, modify, and distribute this software and
36ae6160e2Stakemura * its documentation for any purpose and without fee is hereby granted,
37ae6160e2Stakemura * provided that the above copyright notice appears in all copies.
38ae6160e2Stakemura * Digital Equipment Corporation makes no representations about the
39ae6160e2Stakemura * suitability of this software for any purpose.  It is provided "as is"
40ae6160e2Stakemura * without express or implied warranty.
41ae6160e2Stakemura *
42ae6160e2Stakemura */
43ae6160e2Stakemura
44ae6160e2Stakemura#include <mips/asm.h>
45ae6160e2Stakemura#include <hpcmips/vr/vr_asm.h>
46ae6160e2Stakemura
47ae6160e2Stakemura	.set	noreorder
48ae6160e2Stakemura
49ae6160e2Stakemura/*
50ae6160e2Stakemura * When no processes are on the runq, cpu_switch branches to idle
51ae6160e2Stakemura * to wait for something to come ready.
52ae6160e2Stakemura * Note: this is really a part of cpu_switch() but defined here for kernel
53ae6160e2Stakemura * profiling.
54ae6160e2Stakemura */
55ae6160e2StakemuraLEAF(vr_idle)
56ae6160e2Stakemura	.word	VR_OPCODE_STANDBY
57ae6160e2Stakemura	nop
58ae6160e2Stakemura	nop
59ae6160e2Stakemura	nop
60ae6160e2Stakemura	nop
61ae6160e2Stakemura	j	ra
62a86d1f48Sthorpej	nop
63ae6160e2StakemuraEND(vr_idle)
64