1*3f373d41Sguenther/* $OpenBSD: syscall.S,v 1.14 2015/09/10 13:29:09 guenther Exp $ */ 21fc27e41Stodd 3443998a4Ssmurph/*- 4443998a4Ssmurph * Copyright (c) 1990 The Regents of the University of California. 5443998a4Ssmurph * All rights reserved. 6443998a4Ssmurph * 7443998a4Ssmurph * This code is derived from software contributed to Berkeley by 8443998a4Ssmurph * the Systems Programming Group of the University of Utah Computer 9443998a4Ssmurph * Science Department. 10443998a4Ssmurph * 11443998a4Ssmurph * Redistribution and use in source and binary forms, with or without 12443998a4Ssmurph * modification, are permitted provided that the following conditions 13443998a4Ssmurph * are met: 14443998a4Ssmurph * 1. Redistributions of source code must retain the above copyright 15443998a4Ssmurph * notice, this list of conditions and the following disclaimer. 16443998a4Ssmurph * 2. Redistributions in binary form must reproduce the above copyright 17443998a4Ssmurph * notice, this list of conditions and the following disclaimer in the 18443998a4Ssmurph * documentation and/or other materials provided with the distribution. 196580fee3Smillert * 3. Neither the name of the University nor the names of its contributors 20443998a4Ssmurph * may be used to endorse or promote products derived from this software 21443998a4Ssmurph * without specific prior written permission. 22443998a4Ssmurph * 23443998a4Ssmurph * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 24443998a4Ssmurph * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 25443998a4Ssmurph * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 26443998a4Ssmurph * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 27443998a4Ssmurph * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28443998a4Ssmurph * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29443998a4Ssmurph * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30443998a4Ssmurph * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31443998a4Ssmurph * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32443998a4Ssmurph * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33443998a4Ssmurph * SUCH DAMAGE. 34443998a4Ssmurph */ 35443998a4Ssmurph 36443998a4Ssmurph#include "SYS.h" 37443998a4Ssmurph 3866c90ecaSmiodSYSENTRY(syscall) 390b514a07Smiod or %r13,%r0,0 40377c1f0eSmiod tb0 0,%r0,450 41c90cd26bSmiod br CERROR 420b514a07Smiod jmp %r1 43*3f373d41SguentherSYSCALL_END(syscall) 44