1/* 2** Copyright 2002, Travis Geiselbrecht. All rights reserved. 3** Distributed under the terms of the NewOS License. 4*/ 5 6/* 7** arg layout: 8** r4-r7: arg 1 - 4 9** r0-r3: arg 5 - 8 10** r8-r13: arg 8 - 13 11*/ 12#define FUNC(name) .align 2 ; .globl _##name ; .type _##name,@function ; _##name: 13 14#define SYSCALL0(name, n) \ 15FUNC(name) \ 16 rts 17 18#define SYSCALL1(name, n) \ 19FUNC(name) \ 20 rts 21 22#define SYSCALL2(name, n) \ 23FUNC(name) \ 24 rts 25 26#define SYSCALL3(name, n) \ 27FUNC(name) \ 28 rts 29 30#define SYSCALL4(name, n) \ 31FUNC(name) \ 32 rts 33 34#define SYSCALL5(name, n) \ 35FUNC(name) \ 36 rts 37 38#define SYSCALL6(name, n) \ 39FUNC(name) \ 40 rts 41 42#define SYSCALL7(name, n) \ 43FUNC(name) \ 44 rts 45 46#define SYSCALL8(name, n) \ 47FUNC(name) \ 48 rts 49 50#define SYSCALL9(name, n) \ 51FUNC(name) \ 52 rts 53 54