diff options
author | kaf24@viper.(none) <kaf24@viper.(none)> | 2005-02-05 18:20:15 +0000 |
---|---|---|
committer | kaf24@viper.(none) <kaf24@viper.(none)> | 2005-02-05 18:20:15 +0000 |
commit | a2e0bcb6b9da92f051781e47fabc25b11fa31217 (patch) | |
tree | 4b3ccb8adbe660928de16f842e0d7ea6831b110a /xen/arch/x86/i387.c | |
parent | 64c1adfcf8057af1b46e9da39526688e51fe6c09 (diff) | |
download | xen-a2e0bcb6b9da92f051781e47fabc25b11fa31217.tar.gz xen-a2e0bcb6b9da92f051781e47fabc25b11fa31217.tar.bz2 xen-a2e0bcb6b9da92f051781e47fabc25b11fa31217.zip |
bitkeeper revision 1.1159.212.100 (42050e5fWLAKCQAvoZ3CPmyAaL-51g)
Reorganise 'struct domain' and 'struct exec_domain' to each have an
architecture-specific portion. Removed 'mm_struct'.
Signed-off-by: keir.fraser@cl.cam.ac.uk
Diffstat (limited to 'xen/arch/x86/i387.c')
-rw-r--r-- | xen/arch/x86/i387.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/xen/arch/x86/i387.c b/xen/arch/x86/i387.c index fe7bae3d99..902da0b57f 100644 --- a/xen/arch/x86/i387.c +++ b/xen/arch/x86/i387.c @@ -1,3 +1,4 @@ +/* -*- Mode:C; c-basic-offset:4; tab-width:4; indent-tabs-mode:nil -*- */ /* * linux/arch/i386/kernel/i387.c * @@ -24,10 +25,10 @@ static inline void __save_init_fpu( struct exec_domain *tsk ) { if ( cpu_has_fxsr ) { asm volatile( "fxsave %0 ; fnclex" - : "=m" (tsk->thread.i387) ); + : "=m" (tsk->arch.i387) ); } else { asm volatile( "fnsave %0 ; fwait" - : "=m" (tsk->thread.i387) ); + : "=m" (tsk->arch.i387) ); } clear_bit(EDF_USEDFPU, &tsk->ed_flags); } @@ -48,9 +49,9 @@ void restore_fpu( struct exec_domain *tsk ) { if ( cpu_has_fxsr ) { asm volatile( "fxrstor %0" - : : "m" (tsk->thread.i387) ); + : : "m" (tsk->arch.i387) ); } else { asm volatile( "frstor %0" - : : "m" (tsk->thread.i387) ); + : : "m" (tsk->arch.i387) ); } } |