1/* Copyright (C) 1991, 1992, 1997, 2002 Free Software Foundation, Inc. 2 3 The GNU C Library is free software; you can redistribute it and/or 4 modify it under the terms of the GNU Lesser General Public 5 License as published by the Free Software Foundation; either 6 version 2.1 of the License, or (at your option) any later version. 7 8 The GNU C Library is distributed in the hope that it will be useful, 9 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 Lesser General Public License for more details. 12 13 You should have received a copy of the GNU Lesser General Public 14 License along with the GNU C Library; if not, see 15 <http://www.gnu.org/licenses/>. */ 16 17#include <features.h> 18#include <sys/syscall.h> 19 20.text 21.global syscall 22.type syscall,%function 23.align 4 24 25syscall: 26 mov %o0, %g1 27 mov %o1, %o0 28 mov %o2, %o1 29 mov %o3, %o2 30 mov %o4, %o3 31 mov %o5, %o4 32 33 ta 0x10 34 bcs __syscall_error 35 nop 36 retl 37 nop 38.size syscall,.-syscall 39