diff options
author | kib <kib@FreeBSD.org> | 2011-09-11 16:05:09 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2011-09-11 16:05:09 +0000 |
commit | 55d0a85118b14ca04ad09a2e920c8fac09fb6053 (patch) | |
tree | 0b0a99497de53c0baa2f389ba7ca1c651e4df409 /sys/powerpc | |
parent | b7f3e8948600e128e76a31a3695c9675459d69c7 (diff) | |
download | FreeBSD-src-55d0a85118b14ca04ad09a2e920c8fac09fb6053.zip FreeBSD-src-55d0a85118b14ca04ad09a2e920c8fac09fb6053.tar.gz |
Inline the syscallenter() and syscallret(). This reduces the time measured
by the syscall entry speed microbenchmarks by ~10% on amd64.
Submitted by: jhb
Approved by: re (bz)
MFC after: 2 weeks
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/aim/trap.c | 2 | ||||
-rw-r--r-- | sys/powerpc/booke/trap.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/powerpc/aim/trap.c b/sys/powerpc/aim/trap.c index 51dee0e..93feb51 100644 --- a/sys/powerpc/aim/trap.c +++ b/sys/powerpc/aim/trap.c @@ -445,6 +445,8 @@ cpu_fetch_syscall_args(struct thread *td, struct syscall_args *sa) return (error); } +#include "../../kern/subr_syscall.c" + void syscall(struct trapframe *frame) { diff --git a/sys/powerpc/booke/trap.c b/sys/powerpc/booke/trap.c index fc506bd..091fce0 100644 --- a/sys/powerpc/booke/trap.c +++ b/sys/powerpc/booke/trap.c @@ -375,6 +375,8 @@ cpu_fetch_syscall_args(struct thread *td, struct syscall_args *sa) return (error); } +#include "../../kern/subr_syscall.c" + void syscall(struct trapframe *frame) { |