diff options
author | kib <kib@FreeBSD.org> | 2011-10-06 17:34:43 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2011-10-06 17:34:43 +0000 |
commit | ab59605ce7a948676391c50587442e7a8ae83c5e (patch) | |
tree | ad4a6ef4cb18892b6951fd1537a6b2a027915213 /sys/mips/include/proc.h | |
parent | 0d289d32e49bf755d08d828fc169da7d49509e31 (diff) | |
download | FreeBSD-src-ab59605ce7a948676391c50587442e7a8ae83c5e.zip FreeBSD-src-ab59605ce7a948676391c50587442e7a8ae83c5e.tar.gz |
Convert MIPS to the syscallenter/syscallret system call sequence handlers.
This was the last architecture used custom syscall entry sequence.
Reviewed, debugged, tested and approved by: jchandra
MFC after: 1 month
Diffstat (limited to 'sys/mips/include/proc.h')
-rw-r--r-- | sys/mips/include/proc.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/mips/include/proc.h b/sys/mips/include/proc.h index 11a1f8e..4c0b0b6 100644 --- a/sys/mips/include/proc.h +++ b/sys/mips/include/proc.h @@ -67,11 +67,22 @@ struct mdproc { /* empty */ }; +#ifdef _KERNEL struct thread; void mips_cpu_switch(struct thread *, struct thread *, struct mtx *); void mips_cpu_throw(struct thread *, struct thread *); +struct syscall_args { + u_int code; + struct sysent *callp; + register_t args[8]; + int narg; + struct trapframe *trapframe; +}; +#define HAVE_SYSCALL_ARGS_DEF 1 +#endif + #ifdef __mips_n64 #define KINFO_PROC_SIZE 1088 #else |