git: kernel - Increase size of savefpu area in pcb for vkernel64

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Mar 3 18:27:17 PST 2013


commit c7e46c4ad25b222ae8d2549fc113a5b853c99446
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Mar 3 18:25:14 2013 -0800

    kernel - Increase size of savefpu area in pcb for vkernel64
    
    * The vkernel64 uses bcopy.  The ucontext_t/mcontext_t reserves a 1024
      byte space for the fpu area, but the savefpu structure only reserves
      834 bytes.  Increase the savefpu structure appropriately.
    
    * Did not effect real 64-bit kernels because they used machine instructions
      to save/restore the FP state and/or bcopy'd using the savefpu structure
      sdize instead of the size of the fpu area in the ucontext/mcontext
      structure.
    
    * Fixes panics in vkernel64
    
    Reported-by: tuxillo

Summary of changes:
 sys/cpu/x86_64/include/npx.h      | 1 +
 sys/cpu/x86_64/include/ucontext.h | 7 +++++--
 sys/platform/pc64/include/pcb.h   | 3 +++
 3 files changed, 9 insertions(+), 2 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list