1/* $FreeBSD: head/lib/libc/ia64/SYS.h 71770 2001-01-29 03:23:46Z deischen $ */
2/* From: NetBSD: SYS.h,v 1.5 1997/05/02 18:15:15 kleink Exp */
|
1/* $NetBSD: SYS.h,v 1.5 1997/05/02 18:15:15 kleink Exp $ */ |
2 3/* 4 * Copyright (c) 1994, 1995 Carnegie-Mellon University. 5 * All rights reserved. 6 * 7 * Author: Chris G. Demetriou 8 * 9 * Permission to use, copy, modify and distribute this software and 10 * its documentation is hereby granted, provided that both the copyright 11 * notice and this permission notice appear in all copies of the 12 * software, derivative works or modified versions, and any portions 13 * thereof, and that both notices appear in supporting documentation. 14 * 15 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 16 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND 17 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 18 * 19 * Carnegie Mellon requests users of this software to return to 20 * 21 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 22 * School of Computer Science 23 * Carnegie Mellon University 24 * Pittsburgh PA 15213-3890 25 * 26 * any improvements or extensions that they make and grant Carnegie the 27 * rights to redistribute these changes.
|
28 * 29 * $FreeBSD: head/lib/libc/ia64/SYS.h 92991 2002-03-22 23:42:05Z obrien $ |
30 */ 31 32#include <machine/asm.h> 33#include <sys/syscall.h> 34 35#define CALLSYS_ERROR(name) \ 36 CALLSYS_NOERROR(name); \ 37 cmp.ne p6,p0=r0,r10; \ 38(p6) br.cond.sptk.few .cerror 39 40 41#define SYSCALL(name) \ 42ENTRY(__sys_ ## name,0); /* XXX # of args? */ \ 43 WEAK_ALIAS(name, __sys_ ## name); \ 44 WEAK_ALIAS(_ ## name, __sys_ ## name); \ 45 CALLSYS_ERROR(name) 46 47#define SYSCALL_NOERROR(name) \ 48ENTRY(__sys_ ## name,0); /* XXX # of args? */ \ 49 WEAK_ALIAS(name, __sys_ ## name); \ 50 WEAK_ALIAS(_ ## name, __sys_ ## name); \ 51 CALLSYS_NOERROR(name) 52 53 54#define RSYSCALL(name) \ 55 SYSCALL(name); \ 56 br.ret.sptk.few rp; \ 57END(__sys_ ## name) 58 59#define RSYSCALL_NOERROR(name) \ 60 SYSCALL_NOERROR(name); \ 61 br.ret.sptk.few rp; \ 62END(__sys_ ## name) 63 64 65#define PSEUDO(name) \ 66ENTRY(__sys_ ## name,0); /* XXX # of args? */ \ 67 WEAK_ALIAS(_ ## name, __sys_ ## name); \ 68 CALLSYS_ERROR(name); \ 69 br.ret.sptk.few rp; \ 70END(__sys_ ## name); 71 72#define PSEUDO_NOERROR(name) \ 73ENTRY(__sys_ ## name,0); /* XXX # of args? */ \ 74 WEAK_ALIAS(_ ## name, __sys_ ## name); \ 75 CALLSYS_NOERROR(name); \ 76 br.ret.sptk.few rp; \ 77END(__sys_ ## name);
|