Re: [patch 4/4] openmosix/replace-TIF_NEED_RESCHED.patch replace TIF_NEED_RESCHED usage

Florian Delizy <[email protected]> Fri, 17 Nov 2006 10:55:46 +0100
Newsgroups gmane.linux.cluster.openmosix.devel
Message-ID <[email protected]>
Aaron Hughes wrote:
> Florian,

> It's not compiling for me on 386 gcc-4.0.4 with this new patch.  I'm 
> attaching for your review the patch I used to get it to work.  I only 
> tested it with a simple migration but it was fine.

> Aaron
>   
Well, it seems good to me, I integrate it here (and post it too on the ML)

BTW, you should not use gcc-4.0.4, there are some bugs in it, you should
use gcc-4.1.2 or later (already warned about this)

Florian

Patch attached

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
openMosix-devel mailing list
openMosix-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/openmosix-devel
i386-replace-TIF_NEED_RESCHED.patch (text/x-patch, 471 B)
--- linux-2.6.17.orig/arch/i386/kernel/entry.S	2006-11-17 02:42:18.000000000 -0500
+++ linux-2.6.17/arch/i386/kernel/entry.S	2006-11-17 02:36:06.000000000 -0500
@@ -349,11 +349,11 @@
 
 #ifdef CONFIG_OPENMOSIX
 	/* Check if some oM requests are pending */
-	bt %ecx, $TIF_NEED_OM_RESCHED
+	bt $TIF_NEED_OM_REFRESH, %ecx	
 	jnc work_pending_no_om
 	SAVE_ALL
 	call openmosix_pre_usermode
-	RESTORE_ALL
+	RESTORE_REGS
 work_pending_no_om:
 #endif /* CONFIG_OPENMOSIX */