Index: asp3_tinet_ecnl_arm/trunk/ntshell/src/syscall.c
===================================================================
--- asp3_tinet_ecnl_arm/trunk/ntshell/src/syscall.c	(revision 364)
+++ asp3_tinet_ecnl_arm/trunk/ntshell/src/syscall.c	(revision 374)
@@ -48,9 +48,9 @@
 
 	/* ==== Cleaning and invalidation of the L1 data cache ==== */
-	__v7_all_cache(2);
+	L1C_CleanInvalidateDCacheAll();
 	__DSB();
 
 	/* ==== Cleaning and invalidation of the L2 cache ==== */
-	if (PL310->AUX_CNT & (1 << 16)) {
+	if (L2C_310->AUX_CNT & (1 << 16)) {
 		assoc = 16;
 	}
@@ -58,13 +58,13 @@
 		assoc = 8;
 	}
-	PL310->INV_WAY = (1 << assoc) - 1;
-	while (PL310->INV_WAY & ((1 << assoc) - 1)); // poll invalidate
-	PL310->CACHE_SYNC = 0x0;
+	L2C_310->INV_WAY = (1 << assoc) - 1;
+	while (L2C_310->INV_WAY & ((1 << assoc) - 1)); // poll invalidate
+	L2C_310->CACHE_SYNC = 0x0;
 
 	/* ==== Invalidate all TLB entries ==== */
-	__ca9u_inv_tlb_all();
+	MMU_InvalidateTLB();
 
 	/* ==== Invalidate the L1 instruction cache ==== */
-	__v7_inv_icache_all();
+	L1C_InvalidateICacheAll();
 	__DSB();
 	__ISB();
@@ -184,5 +184,6 @@
 }
 
-long SYS_fdatasync() {
+long SYS_fdatasync(long a) {
+	//int fdatasync(int fd)
 	return no_implement("fdatasync\n");
 }
@@ -200,10 +201,11 @@
 }
 
-long SYS_futex() {
-	int futex(int *uaddr, int op, int val, const struct timespec *timeout, int *uaddr2, int val3);
+long SYS_futex(long a, long b, long c, long d, long e, long f) {
+	//int futex(int *uaddr, int op, int val, const struct timespec *timeout, int *uaddr2, int val3);
 	return no_implement("futex\n");
 }
 
-long SYS_futimesat() {
+long SYS_futimesat(long a, long b, long c) {
+	//int futimesat(int dirfd, const char *pathname, const struct timeval times[2])
 	return no_implement("futimesat\n");
 }
@@ -281,5 +283,6 @@
 }
 
-long SYS_munmap() {
+long SYS_munmap(long a, long b) {
+	//int munmap(void *start, size_t len)
 	return no_implement("munmap\n");
 }
@@ -293,9 +296,13 @@
 }
 
-long SYS_pread64() {
+long SYS_pread64(long a, long b, long c, long d) {
+	//#define pread64 pread
+	//ssize_t pread(int fd, void *buf, size_t size, off_t ofs)
 	return no_implement("pread64\n");
 }
 
-long SYS_pwrite64() {
+long SYS_pwrite64(long a, long b, long c, long d) {
+	//#define pwrite64 pwrite
+	//ssize_t pwrite(int fd, const void *buf, size_t size, off_t ofs)
 	return no_implement("pwrite64\n");
 }
@@ -337,5 +344,6 @@
 }
 
-long SYS_rt_sigqueueinfo() {
+long SYS_rt_sigqueueinfo(long a, long b, long c) {
+	//int rt_sigqueueinfo(pid_t tgid, int sig, siginfo_t *uinfo)
 	return no_implement("rt_sigqueueinfo\n");
 }
@@ -361,9 +369,11 @@
 }
 
-long SYS_sched_setscheduler() {
+long SYS_sched_setscheduler(long a, long b, long c) {
+	//int sched_setscheduler(pid_t pid, int sched, const struct sched_param *param)
 	return no_implement("sched_setscheduler\n");
 }
 
-long SYS_set_robust_list() {
+long SYS_set_robust_list(long a, long b) {
+	//long set_robust_list(struct robust_list_head *head, size_t len)
 	return no_implement("set_robust_list\n");
 }
@@ -401,9 +411,11 @@
 }
 
-long SYS_utimensat() {
+long SYS_utimensat(long a, long b, long c, long d) {
+	//int utimensat(int fd, const char *path, const struct timespec times[2], int flags)
 	return no_implement("utimensat\n");
 }
 
-long SYS_utimes() {
+long SYS_utimes(long a, long b) {
+	//int utimes(const char *path, const struct timeval times[2])
 	return no_implement("utimes\n");
 }
@@ -417,57 +429,134 @@
 }
 
-long SYS_dup()
-{
+long SYS_dup(long a) {
+	//int dup(int fd)
 	return no_implement("dup\n");
 }
 
-long SYS_dup2()
-{
+long SYS_dup2(long a, long b) {
+	//int dup2(int old, int new)
 	return no_implement("dup2\n");
 }
 
-long SYS_pipe()
-{
+long SYS_pipe(long a) {
+	//int pipe(int fd[2])
 	return no_implement("pipe\n");
 }
 
-long SYS_readlink()
-{
+long SYS_readlink(long a, long b, long c) {
+	//ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize)
 	return no_implement("readlink\n");
 }
 
-long SYS_symlink()
-{
+long SYS_symlink(long a, long b) {
+	//int symlink(const char *existing, const char *new)
 	return no_implement("symlink\n");
 }
 
-long SYS_umask()
-{
+long SYS_umask(long a) {
+	//mode_t umask(mode_t mode)
 	return no_implement("umask\n");
 }
 
-long SYS_execve()
-{
+long SYS_execve(long a, long b, long c) {
+	//int execve(const char *path, char *const argv[], char *const envp[])
 	return no_implement("execve\n");
 }
 
-long SYS_fork()
-{
+long SYS_fork() {
+	//pid_t fork(void)
 	return no_implement("fork\n");
 }
 
-long SYS_wait4()
-{
+long SYS_wait4(long a, long b, long c, long d) {
+	//pid_t wait4(pid_t pid, int *status, int options, struct rusage *usage)
 	return no_implement("wait4\n");
 }
 
-long SYS_socketpair()
-{
+long SYS_socketpair(long a, long b, long c, long d) {
+	//int socketpair(int domain, int type, int protocol, int fd[2])
 	return no_implement("socketpair\n");
 }
 
-long SYS_flock()
-{
+long SYS_flock(long a, long b) {
+	//int flock(int fd, int op)
 	return no_implement("flock\n");
+}
+
+long SYS_fchdir()
+{
+	return no_implement("fchdir\n");
+}
+
+long SYS_getegid32()
+{
+	return no_implement("getegid32\n");
+}
+
+long SYS_geteuid32()
+{
+	return no_implement("geteuid32\n");
+}
+
+long SYS_getgid32()
+{
+	return no_implement("getgid32\n");
+}
+
+long SYS_pipe2()
+{
+	return no_implement("pipe2\n");
+}
+
+long SYS_setgid32()
+{
+	return no_implement("setgid32\n");
+}
+
+long SYS_setpgid()
+{
+	return no_implement("setpgid\n");
+}
+
+long SYS_setsid()
+{
+	return no_implement("setsid\n");
+}
+
+long SYS_setuid32()
+{
+	return no_implement("setuid32\n");
+}
+
+long SYS_tgkill()
+{
+	return no_implement("tgkill\n");
+}
+
+long SYS_nanosleep(long a, long b) {
+	//int nanosleep(const struct timespec *req, struct timespec *rem)
+	return no_implement("nanosleep\n");
+}
+
+long SYS_prlimit64(long a, long b, long c, long d) {
+	//#define prlimit64 prlimit
+	//int prlimit(pid_t pid, int resource, const struct rlimit *new_limit, struct rlimit *old_limit)
+	return no_implement("prlimit64\n");
+}
+
+long SYS_sched_getaffinity(long a, long b, long c) {
+	//int sched_getaffinity(pid_t tid, size_t size, cpu_set_t *set)
+	return no_implement("sched_getaffinity\n");
+}
+
+long SYS_sysinfo(long a) {
+	//int sysinfo(struct sysinfo *info)
+	return no_implement("sysinfo\n");
+}
+
+long SYS_ugetrlimit(long a, long b) {
+	//#define SYS_getrlimit SYS_ugetrlimit
+	//int getrlimit(int resource, struct rlimit *rlim)
+	return no_implement("ugetrlimit\n");
 }
 
