[prev in list] [next in list] [prev in thread] [next in thread] 

List:       user-mode-linux-user
Subject:    [uml-user] uml-patch-2.4.20-7.bz2 and Linux 2.4.22
From:       Sakari Ailus <sakari.ailus () kolumbus ! fi>
Date:       2003-08-30 15:23:06
[Download RAW message or body]

In case someone is interested, UML patch seems to work with 2.4.22 
almost directly. Patching mm/slab.c fails because the change is already 
there. A few trivial changes are also necessary. Here's a patch, seems 
to work...

-- 
Sakari Ailus
sakari.ailus@kolumbus.fi

["diff" (text/plain)]

diff -ru linux-2.4.22-backup/arch/um/kernel/process_kern.c uml/arch/um/kernel/process_kern.c
--- linux-2.4.22-backup/arch/um/kernel/process_kern.c	Sat Aug 30 15:50:10 2003
+++ uml/arch/um/kernel/process_kern.c	Thu Aug 28 23:07:13 2003
@@ -96,7 +96,7 @@
 	return(page);
 }
 
-int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
+long arch_kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
 {
 	int pid;
 
diff -ru linux-2.4.22-backup/include/asm-um/processor-generic.h uml/include/asm-um/processor-generic.h
--- linux-2.4.22-backup/include/asm-um/processor-generic.h	Sat Aug 30 15:50:10 2003
+++ uml/include/asm-um/processor-generic.h	Thu Aug 28 22:52:32 2003
@@ -106,7 +106,7 @@
 #define get_task_struct(tsk)      atomic_inc(&virt_to_page(tsk)->count)
 
 extern void release_thread(struct task_struct *);
-extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags);
+extern long kernel_thread(int (*fn)(void *), void * arg, unsigned long flags);
 extern void dump_thread(struct pt_regs *regs, struct user *u);
 
 extern unsigned long thread_saved_pc(struct thread_struct *t);

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic