1/* 2** Copyright 2001-2007, Travis Geiselbrecht. All rights reserved. 3** Distributed under the terms of the MIT License. 4*/ 5 6/* TODO actuall syscalls? */ 7#define _SYSCALL(name, n) \ 8.globl name; \ 9.type name,%function; \ 10.align 4; \ 11name: 12 13#define SYSCALL0(name, n) _SYSCALL(name, n) 14#define SYSCALL1(name, n) _SYSCALL(name, n) 15#define SYSCALL2(name, n) _SYSCALL(name, n) 16#define SYSCALL3(name, n) _SYSCALL(name, n) 17#define SYSCALL4(name, n) _SYSCALL(name, n) 18#define SYSCALL5(name, n) _SYSCALL(name, n) 19#define SYSCALL6(name, n) _SYSCALL(name, n) 20#define SYSCALL7(name, n) _SYSCALL(name, n) 21#define SYSCALL8(name, n) _SYSCALL(name, n) 22#define SYSCALL9(name, n) _SYSCALL(name, n) 23#define SYSCALL10(name, n) _SYSCALL(name, n) 24#define SYSCALL11(name, n) _SYSCALL(name, n) 25#define SYSCALL12(name, n) _SYSCALL(name, n) 26#define SYSCALL13(name, n) _SYSCALL(name, n) 27#define SYSCALL14(name, n) _SYSCALL(name, n) 28#define SYSCALL15(name, n) _SYSCALL(name, n) 29#define SYSCALL16(name, n) _SYSCALL(name, n) 30#define SYSCALL17(name, n) _SYSCALL(name, n) 31#define SYSCALL18(name, n) _SYSCALL(name, n) 32#define SYSCALL19(name, n) _SYSCALL(name, n) 33#define SYSCALL20(name, n) _SYSCALL(name, n) 34