git: kernel - Optimize syscall path, remove old unused compat code

Matthew Dillon dillon at crater.dragonflybsd.org
Tue May 8 10:01:43 PDT 2018


commit fdfeda0af16f48a4d43d7e574734598d2d657e81
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri May 4 10:48:29 2018 -0700

    kernel - Optimize syscall path, remove old unused compat code
    
    * Use the built-in memcpy with a constant length for the register arg
      copy instead of calling bcopy().  This saves us 25ns.
    
    * Remove several system call compatibility support features that are
      no longer used (as we no longer have a linux compat module).  We
      remove sv_mask and sv_prepsyscall.  Saves 1ns (woo woo!).
    
    * Do some minor rearrangement of code to remove additional unnecessary
      conditionals.

Summary of changes:
 sys/cpu/x86_64/misc/elf_machdep.c    |  2 --
 sys/kern/imgact_aout.c               |  2 --
 sys/platform/pc64/x86_64/trap.c      | 46 ++++++++++++++++--------------------
 sys/platform/vkernel64/x86_64/trap.c | 17 ++++---------
 sys/sys/sysent.h                     |  3 ---
 5 files changed, 25 insertions(+), 45 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fdfeda0af16f48a4d43d7e574734598d2d657e81


-- 
DragonFly BSD source repository


More information about the Commits mailing list