#ifdef ARCH_x86
#	include "arch/x86/syscalls.inc"
#endif
#ifdef ARCH_alpha
#	include "arch/alpha/syscalls.inc"
#endif
#ifdef ARCH_sh4
#	include "arch/sh4/syscalls.inc"
#endif
#ifdef ARCH_sparc
#	include "arch/sparc/syscalls.inc"
#endif
#ifdef ARCH_sparc64
#	include "arch/sparc64/syscalls.inc"
#endif
#ifdef ARCH_mips
#	include "arch/mips/syscalls.inc"
#endif
#ifdef ARCH_ppc
#	include "arch/ppc/syscalls.inc"
#endif
#ifdef ARCH_m68k
#	include "arch/m68k/syscalls.inc"
#endif

/* ToDo: we should do something about this file; either machine generate it */
/* or make it more intelligent... it's really boring to maintain this one. */

SYSCALL0(sys_null, 0)

/* VFS calls */
SYSCALL4(sys_mount, 1)
SYSCALL1(sys_unmount, 2)
SYSCALL0(sys_sync, 3)
SYSCALL2(sys_open, 4)
SYSCALL5(sys_open_entry_ref, 81)
SYSCALL1(sys_close, 5)
SYSCALL1(sys_fsync, 6)
SYSCALL5(sys_read, 7)
SYSCALL5(sys_write, 8)
SYSCALL4(sys_seek, 9)
SYSCALL1(sys_open_dir, 77)
SYSCALL4(sys_open_dir_entry_ref, 82)
SYSCALL3(sys_open_dir_node_ref, 83)
SYSCALL2(sys_create_dir, 78)
SYSCALL5(sys_create_dir_entry_ref, 85)
SYSCALL1(sys_remove_dir, 93)
SYSCALL3(sys_create_symlink, 86)
SYSCALL2(sys_create_link, 92)
SYSCALL3(sys_read_link, 87)
SYSCALL4(sys_read_dir, 75)
SYSCALL1(sys_rewind_dir, 76)
SYSCALL4(sys_ioctl, 10)
SYSCALL3(sys_create, 11)
SYSCALL6(sys_create_entry_ref, 84)
SYSCALL1(sys_unlink, 12)
SYSCALL2(sys_rename, 13)
SYSCALL2(sys_access, 73);
SYSCALL2(sys_read_stat, 74)
SYSCALL3(sys_write_stat, 100)
SYSCALL3(sys_read_path_stat, 14)
SYSCALL4(sys_write_path_stat, 15)
SYSCALL2(sys_getcwd, 41)
SYSCALL2(sys_setcwd, 42)
SYSCALL1(sys_dup, 61)
SYSCALL2(sys_dup2, 62)
SYSCALL7(sys_select, 112)
SYSCALL4(sys_poll, 113)

/* VFS attribute calls */
SYSCALL2(sys_open_attr_dir, 97)
SYSCALL4(sys_create_attr, 98)
SYSCALL3(sys_open_attr, 99)
SYSCALL2(sys_remove_attr, 101)
SYSCALL4(sys_rename_attr, 102)

/* VFS index calls */
SYSCALL1(sys_open_index_dir, 106)
SYSCALL4(sys_create_index, 107)
SYSCALL3(sys_read_index_stat, 108)
SYSCALL2(sys_remove_index, 109)

/* semaphore calls */
SYSCALL2(sys_create_sem, 18)
SYSCALL1(sys_delete_sem, 19)
SYSCALL1(sys_acquire_sem, 20)
SYSCALL4(sys_acquire_sem_etc, 21)
SYSCALL1(sys_release_sem, 22)
SYSCALL3(sys_release_sem_etc, 23)
SYSCALL2(sys_sem_get_count, 57)
SYSCALL3(sys_get_sem_info, 58)
SYSCALL4(sys_get_next_sem_info, 59)
SYSCALL2(sys_set_sem_owner, 60)

/* thread/team calls */
SYSCALL0(sys_get_current_thread_id, 24)
SYSCALL5(sys_spawn_thread, 35)
SYSCALL1(sys_kill_thread, 36)
SYSCALL1(sys_suspend_thread, 37)
SYSCALL1(sys_resume_thread, 38)
SYSCALL4(sys_snooze_etc, 17)
SYSCALL4(send_data, 94)
SYSCALL3(receive_data, 95)
SYSCALL1(has_data, 96)
SYSCALL1(sys_exit, 25)
SYSCALL5(sys_create_team, 26)
SYSCALL2(sys_wait_on_thread, 27)
SYSCALL2(sys_wait_on_team, 28)
SYSCALL2(sys_get_thread_info, 88)
SYSCALL3(sys_get_next_thread_info, 89)
SYSCALL2(sys_get_team_info, 90)
SYSCALL2(sys_get_next_team_info, 91)

/* image calls */
SYSCALL2(sys_register_image, 114)
SYSCALL1(sys_unregister_image, 115)
SYSCALL3(sys_get_image_info, 116)
SYSCALL4(sys_get_next_image_info, 117)

/* node monitor calls */
SYSCALL6(sys_start_watching, 118)
SYSCALL6(sys_stop_watching, 119)
SYSCALL2(sys_stop_notifying, 120)

/* VM calls */
SYSCALL6(sys_vm_create_anonymous_region, 29)
SYSCALL6(sys_vm_clone_region, 30)
SYSCALL9(sys_vm_map_file, 31)
SYSCALL1(sys_vm_delete_region, 32)
SYSCALL2(sys_vm_get_region_info, 33)
SYSCALL1(sys_find_region_by_name, 34)
SYSCALL1(sys_kill_team, 39)
SYSCALL0(sys_get_current_team_id, 40)

/* port syscalls */
SYSCALL2(sys_port_create, 43)
SYSCALL1(sys_port_close, 44)
SYSCALL1(sys_port_delete, 45)
SYSCALL1(sys_port_find, 46)
SYSCALL2(sys_port_get_info, 47)
SYSCALL3(sys_port_get_next_port_info, 48)
SYSCALL1(sys_port_buffer_size, 49)
SYSCALL4(sys_port_buffer_size_etc, 50)
SYSCALL1(sys_port_count, 51)
SYSCALL4(sys_port_read, 52)
SYSCALL7(sys_port_read_etc, 53)
SYSCALL2(sys_port_set_owner, 54)
SYSCALL4(sys_port_write, 55)
SYSCALL7(sys_port_write_etc, 56)

/* misc calls */
SYSCALL0(sys_system_time, 16)
//SYSCALL2(sys_team_get_table, 63)
SYSCALL2(sys_getrlimit, 64)
SYSCALL2(sys_setrlimit, 65)
SYSCALL2(sys_atomic_add, 66)
SYSCALL2(sys_atomic_and, 67)
SYSCALL2(sys_atomic_or, 68)
SYSCALL2(sys_atomic_set, 69)
SYSCALL3(sys_test_and_set, 70)
SYSCALL6(sys_sysctl, 71)
//SYSCALL3(sys_socket, 72)
SYSCALL3(sys_setenv, 79)
SYSCALL2(sys_getenv, 80)

/* Signal handling calls */
SYSCALL0(sys_return_from_signal, 103)
SYSCALL3(sys_sigaction, 105)
SYSCALL2(sys_send_signal, 110)
SYSCALL3(sys_set_alarm, 111)

