Cleaned up all compile errors.

This commit is contained in:
Bahadir Balban
2008-08-25 16:59:00 +03:00
parent cdfaa4bbe9
commit 476bac5142
19 changed files with 99 additions and 80 deletions

View File

@@ -26,18 +26,18 @@
#define syscalls_end_offset sys_time_offset
#define SYSCALLS_TOTAL ((syscalls_end_offset >> 2) + 1)
int sys_ipc(struct syscall_args *);
int sys_thread_switch(struct syscall_args *);
int sys_thread_control(struct syscall_args *);
int sys_exchange_registers(struct syscall_args *);
int sys_schedule(struct syscall_args *);
int sys_unmap(struct syscall_args *);
int sys_space_control(struct syscall_args *);
int sys_ipc_control(struct syscall_args *);
int sys_map(struct syscall_args *);
int sys_getid(struct syscall_args *);
int sys_kread(struct syscall_args *);
int sys_kmem_control(struct syscall_args *);
int sys_time(struct syscall_args *);
int sys_ipc(struct syscall_context *);
int sys_thread_switch(struct syscall_context *);
int sys_thread_control(struct syscall_context *);
int sys_exchange_registers(struct syscall_context *);
int sys_schedule(struct syscall_context *);
int sys_unmap(struct syscall_context *);
int sys_space_control(struct syscall_context *);
int sys_ipc_control(struct syscall_context *);
int sys_map(struct syscall_context *);
int sys_getid(struct syscall_context *);
int sys_kread(struct syscall_context *);
int sys_kmem_control(struct syscall_context *);
int sys_time(struct syscall_context *);
#endif /* __SYSCALL_H__ */

View File

@@ -23,7 +23,7 @@ extern unsigned int __syscall_page_start;
* just after entering a system call exception.
*/
typedef struct syscall_context {
u32 spsr
u32 spsr;
u32 r0;
u32 r1;
u32 r2;
@@ -55,10 +55,10 @@ typedef struct msg_regs {
/* Represents each syscall. We get argument registers
* from stack for now. This is slower but the simplest. */
typedef int (*syscall_fn_t)(struct syscall_args *regs);
typedef int (*syscall_fn_t)(struct syscall_context *regs);
/* Entry point for syscall dispatching. Called from asm */
int syscall(struct syscall_args *regs, unsigned long);
int syscall(struct syscall_context *regs, unsigned long);
/* Syscall-related initialiser called during system init. */
void syscall_init(void);