aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/i387.h
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-05-12 13:58:47 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-05-12 13:58:47 +0000
commit3b2bf5dfb1110ffb1a5fb7a3d02b66315f9c552d (patch)
tree74b075e518f21996d1c2583b1d885da694fc9900 /xen/include/asm-x86/i387.h
parenta6ba03510e86c088ef940c521781223c8dc2fc0d (diff)
downloadxen-3b2bf5dfb1110ffb1a5fb7a3d02b66315f9c552d.tar.gz
xen-3b2bf5dfb1110ffb1a5fb7a3d02b66315f9c552d.tar.bz2
xen-3b2bf5dfb1110ffb1a5fb7a3d02b66315f9c552d.zip
bitkeeper revision 1.1389.20.1 (42836117f2yEkILParltXJcom3kTeA)
More descriptive 'flags' and 'id' field names for exec_domain/domain structures seems a good idea after all. At the same time, I've renamed the flag macros to be a bit neater and more descriptive, and more in keeping with the style of such definitions in asm/mm.h, for example. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/asm-x86/i387.h')
-rw-r--r--xen/include/asm-x86/i387.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/xen/include/asm-x86/i387.h b/xen/include/asm-x86/i387.h
index 01039ab648..a1f0feaec0 100644
--- a/xen/include/asm-x86/i387.h
+++ b/xen/include/asm-x86/i387.h
@@ -19,7 +19,7 @@ extern void save_init_fpu(struct exec_domain *tsk);
extern void restore_fpu(struct exec_domain *tsk);
#define unlazy_fpu(_tsk) do { \
- if ( test_bit(EDF_USEDFPU, &(_tsk)->flags) ) \
+ if ( test_bit(_VCPUF_fpu_dirtied, &(_tsk)->vcpu_flags) ) \
save_init_fpu(_tsk); \
} while ( 0 )
@@ -31,9 +31,9 @@ extern void restore_fpu(struct exec_domain *tsk);
/* Make domain the FPU owner */
static inline void setup_fpu(struct exec_domain *ed)
{
- if ( !test_and_set_bit(EDF_USEDFPU, &ed->flags) )
+ if ( !test_and_set_bit(_VCPUF_fpu_dirtied, &ed->vcpu_flags) )
{
- if ( test_bit(EDF_DONEFPUINIT, &ed->flags) )
+ if ( test_bit(_VCPUF_fpu_initialised, &ed->vcpu_flags) )
restore_fpu(ed);
else
init_fpu();