swapcontext.S revision 118332
1118332Smarcel/* 2118332Smarcel * Copyright (c) 2003 Marcel Moolenaar 3118332Smarcel * All rights reserved. 4118332Smarcel * 5118332Smarcel * Redistribution and use in source and binary forms, with or without 6118332Smarcel * modification, are permitted provided that the following conditions 7118332Smarcel * are met: 8118332Smarcel * 9118332Smarcel * 1. Redistributions of source code must retain the above copyright 10118332Smarcel * notice, this list of conditions and the following disclaimer. 11118332Smarcel * 2. Redistributions in binary form must reproduce the above copyright 12118332Smarcel * notice, this list of conditions and the following disclaimer in the 13118332Smarcel * documentation and/or other materials provided with the distribution. 14118332Smarcel * 15118332Smarcel * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16118332Smarcel * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17118332Smarcel * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18118332Smarcel * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19118332Smarcel * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20118332Smarcel * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21118332Smarcel * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22118332Smarcel * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23118332Smarcel * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24118332Smarcel * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25118332Smarcel */ 26118332Smarcel 27118332Smarcel#include <machine/asm.h> 28118332Smarcel__FBSDID("$FreeBSD: head/lib/libc/ia64/sys/swapcontext.S 118332 2003-08-02 00:49:36Z marcel $"); 29118332Smarcel 30118332Smarcel#include "SYS.h" 31118332Smarcel 32118332SmarcelENTRY(__sys_swapcontext,2) 33118332Smarcel WEAK_ALIAS(swapcontext, __sys_swapcontext) 34118332Smarcel WEAK_ALIAS(_swapcontext, __sys_swapcontext) 35118332Smarcel flushrs 36118332Smarcel ;; 37118332Smarcel CALLSYS_ERROR(swapcontext) 38118332Smarcel br.ret.sptk.few rp 39118332SmarcelEND(__sys_swapcontext) 40