DragonFly BSD
DragonFly commits List (threaded) for 2013-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 3 Mar 2013 18:27:17 -0800 (PST)

commit c7e46c4ad25b222ae8d2549fc113a5b853c99446
Author: Matthew Dillon <dillon@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]