xref: /freebsd/sys/powerpc/mambo/mambocall.S (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
12c16c8d7SNathan Whitehorn/*-
22c16c8d7SNathan Whitehorn * Copyright 2008 by Nathan Whitehorn. All rights reserved.
32c16c8d7SNathan Whitehorn *
42c16c8d7SNathan Whitehorn * Redistribution and use in source and binary forms, with or without
52c16c8d7SNathan Whitehorn * modification, are permitted provided that the following conditions
62c16c8d7SNathan Whitehorn * are met:
72c16c8d7SNathan Whitehorn * 1. Redistributions of source code must retain the above copyright
82c16c8d7SNathan Whitehorn *    notice, this list of conditions and the following disclaimer.
92c16c8d7SNathan Whitehorn * 2. Redistributions in binary form must reproduce the above copyright
102c16c8d7SNathan Whitehorn *    notice, this list of conditions and the following disclaimer in the
112c16c8d7SNathan Whitehorn *    documentation and/or other materials provided with the distribution.
122c16c8d7SNathan Whitehorn *
132c16c8d7SNathan Whitehorn * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
142c16c8d7SNathan Whitehorn * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
152c16c8d7SNathan Whitehorn * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
162c16c8d7SNathan Whitehorn * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
172c16c8d7SNathan Whitehorn * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
182c16c8d7SNathan Whitehorn * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
192c16c8d7SNathan Whitehorn * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
202c16c8d7SNathan Whitehorn * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
212c16c8d7SNathan Whitehorn * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
222c16c8d7SNathan Whitehorn * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
232c16c8d7SNathan Whitehorn * SUCH DAMAGE.
242c16c8d7SNathan Whitehorn */
252c16c8d7SNathan Whitehorn
262c16c8d7SNathan Whitehorn#include <machine/asm.h>
272c16c8d7SNathan Whitehorn
282c16c8d7SNathan Whitehorn	.text
292c16c8d7SNathan Whitehorn
302c16c8d7SNathan WhitehornASENTRY(mambocall)
312c16c8d7SNathan Whitehorn	/*
322c16c8d7SNathan Whitehorn	 * Use the special Mambo callout opcode and whatever arguments we
332c16c8d7SNathan Whitehorn	 * were passed. Then return whatever Mambo returned.
342c16c8d7SNathan Whitehorn	 */
352c16c8d7SNathan Whitehorn	.long 0x000EAEB0
362c16c8d7SNathan Whitehorn	blr
37*78599c32SConrad MeyerASEND(mambocall)
38