From 55d0a85118b14ca04ad09a2e920c8fac09fb6053 Mon Sep 17 00:00:00 2001 From: kib Date: Sun, 11 Sep 2011 16:05:09 +0000 Subject: 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 --- sys/ia64/ia32/ia32_trap.c | 2 ++ sys/ia64/ia64/trap.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'sys/ia64') diff --git a/sys/ia64/ia32/ia32_trap.c b/sys/ia64/ia32/ia32_trap.c index 57f4791..6755358 100644 --- a/sys/ia64/ia32/ia32_trap.c +++ b/sys/ia64/ia32/ia32_trap.c @@ -144,6 +144,8 @@ ia32_fetch_syscall_args(struct thread *td, struct syscall_args *sa) return (error); } +#include "../../kern/subr_syscall.c" + static void ia32_syscall(struct trapframe *tf) { diff --git a/sys/ia64/ia64/trap.c b/sys/ia64/ia64/trap.c index 4b84f76..d587b05 100644 --- a/sys/ia64/ia64/trap.c +++ b/sys/ia64/ia64/trap.c @@ -929,6 +929,8 @@ cpu_fetch_syscall_args(struct thread *td, struct syscall_args *sa) return (0); } +#include "../../kern/subr_syscall.c" + /* * Process a system call. * -- cgit v1.1