X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=ginge.git;a=blobdiff_plain;f=loader%2Fsyscalls.S;h=6d48fbd60a7d37a844d2adb5b3561661ee610395;hp=0d47b813b0ce84e4bef2e85df093201e6d8191b9;hb=f2a1fca9e81b773927c0b28dffaa6e2ee8a5956a;hpb=b4f4cb40a6f3f4ecc05c7b6c8f2e852282234519 diff --git a/loader/syscalls.S b/loader/syscalls.S index 0d47b81..6d48fbd 100644 --- a/loader/syscalls.S +++ b/loader/syscalls.S @@ -1,6 +1,16 @@ @ vim:filetype=armasm #include +@ support ancient toolchains (gcc 2.95.3 has upto 225) +#ifndef __NR_futex +#define __NR_futex (__NR_SYSCALL_BASE+240) +#endif +#ifndef __NR_exit_group +#define __NR_exit_group (__NR_SYSCALL_BASE+248) +#endif +#ifndef __NR_clock_gettime +#define __NR_clock_gettime (__NR_SYSCALL_BASE+263) +#endif .global sys_cacheflush @ const void *start_addr, const void *end_addr sys_cacheflush: @@ -88,6 +98,8 @@ raw_syscall_easy g_close_raw, __NR_close raw_syscall_easy g_chdir_raw, __NR_chdir raw_syscall_easy g_futex_raw, __NR_futex raw_syscall_easy g_nanosleep_raw, __NR_nanosleep +raw_syscall_easy g_readlink_raw, __NR_readlink +raw_syscall_easy g_execve_raw, __NR_execve raw_syscall_easy g_clock_gettime_raw, __NR_clock_gettime raw_syscall_easy g_rt_sigprocmask_raw, __NR_rt_sigprocmask raw_syscall_easy g_exit_group_raw, __NR_exit_group