Re: 2.4.34 openmosix

Tony Travis <[email protected]> Tue, 05 Jun 2007 22:11:20 +0100
Newsgroups gmane.linux.cluster.openmosix.general
Message-ID <[email protected]>
magnus-lXxMrn49x/[email protected] wrote:
> Hi,
> 
> I tried the 2.4.32 patch on kernel 2.4.32 and it works.
> I try the same patch with the 2.4.34 kernel and it gives an error at line
> 96 on mig.c but does compile and work with gcc-2.95.
> 
> The patch error can be seen in mig.c.rej and has to be manually edited
> into mig.c. I tried this and Im having trouble getting this file patched.
> Maybe you know how to patch this file correctly, it is only like 4 line
> that needs to be added tom mig.c.
> 
> I will attach the patch.

Hello, Limpo.

Do you mean you applied the 2.4.26-om1 patch to the 2.4.32 kernel sources?

This is how I patched mig.c for my 'new' 2.4.26 kernel:

diff -Naur linux-2.4.26-om1.old/hpc/mig.c linux-2.4.26-om1/hpc/mig.c
--- linux-2.4.26-om1.old/hpc/mig.c 2004-11-19 20:23:51.000000000 +0000
+++ linux-2.4.26-om1/hpc/mig.c     2007-01-07 01:44:56.000000000 +0000
@@ -854,8 +854,8 @@
         /* else do not bother - DEPUTY will bring */
         /* send task segment registers.
          */
-       asm volatile ("movl %%fs,%0":"=m" (*(int *) &m.fs));
-       asm volatile ("movl %%gs,%0":"=m" (*(int *) &m.gs));
+       asm volatile ("mov %%fs,%0":"=m" (m.fs));
+       asm volatile ("mov %%gs,%0":"=m" (m.gs));
         /* send task  limits */
         m.rlim_cpu = p->rlim[RLIMIT_CPU];
         m.rlim_data = p->rlim[RLIMIT_DATA];

Why are you patching 2.4.32?

I patched the 2.4.34 sources...

However, there were problems with process migration and I've not had 
time to look into it again - I'll put my current 2.4.34 patch on:

	http://bioinformatics.rri.sari.ac.uk/~ajt/openmosix

Best wishes,

	Tony.
-- 
Dr. A.J.Travis,                     |  mailto:[email protected]
Rowett Research Institute,          |    http://www.rri.sari.ac.uk/~ajt
Greenburn Road, Bucksburn,          |   phone:+44 (0)1224 712751
Aberdeen AB21 9SB, Scotland, UK.    |     fax:+44 (0)1224 716687

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/