WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] 2.6.11-rc3 used_math changes

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] 2.6.11-rc3 used_math changes
From: Rik van Riel <riel@xxxxxxxxxx>
Date: Mon, 7 Feb 2005 17:18:27 -0500 (EST)
Delivery-date: Mon, 07 Feb 2005 22:19:32 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
Bring the Xen code in line with the used_math changes in
2.6.11-rc3.

Signed-off-by: Rik van Riel <riel@xxxxxxxxxx>

--- linux-2.6.10/arch/xen/i386/kernel/cpu/common.c.usedmath     2005-02-07 
13:40:24.364313822 -0500
+++ linux-2.6.10/arch/xen/i386/kernel/cpu/common.c      2005-02-07 
13:40:59.139055752 -0500
@@ -596,7 +596,7 @@ void __init cpu_init (void)
         * Force FPU initialization:
         */
        current_thread_info()->status = 0;
-       current->used_math = 0;
+       clear_used_math();
        mxcsr_feature_mask_init();
 }

--- linux-2.6.10/arch/xen/i386/kernel/process.c.usedmath        2005-02-07 
13:40:24.366313462 -0500
+++ linux-2.6.10/arch/xen/i386/kernel/process.c 2005-02-07 13:41:43.178137593 
-0500
@@ -297,7 +297,7 @@ void flush_thread(void)
         * Forget coprocessor state..
         */
        clear_fpu(tsk);
-       tsk->used_math = 0;
+       clear_used_math();
 }

 void release_thread(struct task_struct *dead_task)
--- linux-2.6.10/arch/xen/i386/kernel/traps.c.usedmath  2005-02-07 
13:40:24.368313102 -0500
+++ linux-2.6.10/arch/xen/i386/kernel/traps.c   2005-02-07 13:42:06.916872679 
-0500
@@ -947,7 +947,7 @@ asmlinkage void math_state_restore(struc
                return;

        clts();         /* Allow maths ops (or we recurse) */
-       if (!tsk->used_math)
+       if (tsk_used_math(tsk))
                init_fpu(tsk);
        restore_fpu(tsk);
        thread->status |= TS_USEDFPU;        /* So we fnsave on switch_to() */


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] 2.6.11-rc3 used_math changes, Rik van Riel <=