git: kernel - x86-64 - normalize the location of the pcb/md_regs and remove gd_rsp0

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Nov 27 22:45:27 PST 2010


commit d1368d1a9cb1e243085a10a268783ee7fa8fd95a
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Nov 27 22:34:56 2010 -0800

    kernel - x86-64 - normalize the location of the pcb/md_regs and remove gd_rsp0
    
    * Normalize the location of the pcb and related user process register
      frame for traps and system calls.
    
    * The pcb is now 16-byte aligned at the top of the kernel thread's stack
      and md_regs is placed just below it.
    
    * We no longer reserve 16 bytes for a 8086 emulation frame.
    
    * Change the md_regs assignment in the trap code to an assertion that the
      value is correct.
    
    * Remove gd_rsp0, use the value from common_tss.tss_rsp0 instead (which
      is the same).

Summary of changes:
 sys/platform/pc64/include/globaldata.h |    6 +++---
 sys/platform/pc64/x86_64/exception.S   |    2 +-
 sys/platform/pc64/x86_64/genassym.c    |    1 -
 sys/platform/pc64/x86_64/global.s      |    3 +--
 sys/platform/pc64/x86_64/machdep.c     |    3 +--
 sys/platform/pc64/x86_64/pmap.c        |    5 +++--
 sys/platform/pc64/x86_64/swtch.s       |    4 ++--
 sys/platform/pc64/x86_64/trap.c        |    6 ++++--
 8 files changed, 15 insertions(+), 15 deletions(-)

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


-- 
DragonFly BSD source repository





More information about the Commits mailing list