1/* 2 * Copyright 2022 Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Copyright 2001, Travis Geiselbrecht. All rights reserved. 6 * Distributed under the terms of the NewOS License. 7 */ 8 9#include <asm_defs.h> 10#include <commpage_defs.h> 11 12#define _SYSCALL(name, n) \ 13 .align 8; \ 14 FUNCTION(name): \ 15 svc n; \ 16 bx lr; \ 17 FUNCTION_END(name) 18 19#define SYSCALL0(name, n) _SYSCALL(name, n) 20#define SYSCALL1(name, n) _SYSCALL(name, n) 21#define SYSCALL2(name, n) _SYSCALL(name, n) 22#define SYSCALL3(name, n) _SYSCALL(name, n) 23#define SYSCALL4(name, n) _SYSCALL(name, n) 24#define SYSCALL5(name, n) _SYSCALL(name, n) 25#define SYSCALL6(name, n) _SYSCALL(name, n) 26#define SYSCALL7(name, n) _SYSCALL(name, n) 27#define SYSCALL8(name, n) _SYSCALL(name, n) 28#define SYSCALL9(name, n) _SYSCALL(name, n) 29#define SYSCALL10(name, n) _SYSCALL(name, n) 30#define SYSCALL11(name, n) _SYSCALL(name, n) 31#define SYSCALL12(name, n) _SYSCALL(name, n) 32#define SYSCALL13(name, n) _SYSCALL(name, n) 33#define SYSCALL14(name, n) _SYSCALL(name, n) 34#define SYSCALL15(name, n) _SYSCALL(name, n) 35#define SYSCALL16(name, n) _SYSCALL(name, n) 36#define SYSCALL17(name, n) _SYSCALL(name, n) 37#define SYSCALL18(name, n) _SYSCALL(name, n) 38#define SYSCALL19(name, n) _SYSCALL(name, n) 39#define SYSCALL20(name, n) _SYSCALL(name, n) 40