Remove all references to ARM registers in system call arguments.

This commit is contained in:
Bahadir Balban
2009-06-10 17:30:02 +03:00
parent 6de090a365
commit 0dd8918ae5
10 changed files with 134 additions and 77 deletions

View File

@@ -37,12 +37,6 @@ struct time_info {
u64 sec; /* Seconds so far */
};
/* Used by posix systems */
struct timeval {
int tv_sec;
int tv_usec;
};
static struct time_info systime = { 0 };
/*
@@ -71,13 +65,12 @@ void update_system_time(void)
}
/* Read system time */
int sys_time(syscall_context_t *args)
int sys_time(struct timeval *tv, int set)
{
struct timeval *tv = (struct timeval *)args->r0;
int set = (int)args->r1;
int retries = 20;
if (check_access((unsigned long)tv, sizeof(*tv), MAP_USR_RW_FLAGS, 1) < 0)
if (check_access((unsigned long)tv, sizeof(*tv),
MAP_USR_RW_FLAGS, 1) < 0)
return -EINVAL;
/* Get time */