* [uml-devel] Quick and dirty patch for 2.6.5 + 2.6.4-um1 patch
@ 2004-04-07 21:51 Piotr Neuman
2004-04-07 22:45 ` Henrik Nordstrom
0 siblings, 1 reply; 2+ messages in thread
From: Piotr Neuman @ 2004-04-07 21:51 UTC (permalink / raw)
To: user-mode-linux-devel
[-- Attachment #1: Type: text/plain, Size: 1303 bytes --]
This is just a hack to compile 2.6.5 kernel + 2.6.4-um1 patch. As Jeff Dike
put it "you might post that to uml-devel for the impatient" ;), but it's not
official fix...
Here it goes:
diff -ruN linux/include/asm-i386/system.h uml/linux/include/asm-i386/system.h
--- linux/include/asm-i386/system.h 2004-04-07 23:29:03.000000000 +0200
+++ uml/linux/include/asm-i386/system.h 2004-04-07 23:24:39.000000000 +0200
@@ -243,6 +243,7 @@
#define __HAVE_ARCH_CMPXCHG 1
#endif
+#ifndef __UM_SYSTEM_I386_H
static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old,
unsigned long new, int size)
{
@@ -270,6 +271,8 @@
return old;
}
+#endif
+
#define cmpxchg(ptr,o,n)\
((__typeof__(*(ptr)))__cmpxchg((ptr),(unsigned long)(o),\
(unsigned long)(n),sizeof(*(ptr))))
--- linux/arch/um/Makefile-i386 2004-04-07 23:29:20.521333000 +0200
+++ uml/linux/arch/um/Makefile-i386 2004-04-07 23:22:31.000000000 +0200
@@ -30,7 +30,7 @@
$(SYS_DIR)/thread.h: $(SYS_UTIL_DIR)/mk_thread
$(call filechk,$@)
-$(SYS_UTIL_DIR)/mk_sc: scripts/fixdep include/config/MARKER FORCE ;
+$(SYS_UTIL_DIR)/mk_sc: scripts/basic/fixdep include/config/MARKER FORCE ;
$(Q)$(MAKE) $(build)=$(SYS_UTIL_DIR) $@
$(SYS_UTIL_DIR)/mk_thread: $(ARCH_SYMLINKS) $(GEN_HEADERS) sys_prepare
FORCE ;
[-- Attachment #2: 2.6.5-uml1.fix --]
[-- Type: text/x-diff, Size: 1116 bytes --]
diff -ruN linux/include/asm-i386/system.h uml/linux/include/asm-i386/system.h
--- linux/include/asm-i386/system.h 2004-04-07 23:29:03.000000000 +0200
+++ uml/linux/include/asm-i386/system.h 2004-04-07 23:24:39.000000000 +0200
@@ -243,6 +243,7 @@
#define __HAVE_ARCH_CMPXCHG 1
#endif
+#ifndef __UM_SYSTEM_I386_H
static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old,
unsigned long new, int size)
{
@@ -270,6 +271,8 @@
return old;
}
+#endif
+
#define cmpxchg(ptr,o,n)\
((__typeof__(*(ptr)))__cmpxchg((ptr),(unsigned long)(o),\
(unsigned long)(n),sizeof(*(ptr))))
--- linux/arch/um/Makefile-i386 2004-04-07 23:29:20.521333000 +0200
+++ uml/linux/arch/um/Makefile-i386 2004-04-07 23:22:31.000000000 +0200
@@ -30,7 +30,7 @@
$(SYS_DIR)/thread.h: $(SYS_UTIL_DIR)/mk_thread
$(call filechk,$@)
-$(SYS_UTIL_DIR)/mk_sc: scripts/fixdep include/config/MARKER FORCE ;
+$(SYS_UTIL_DIR)/mk_sc: scripts/basic/fixdep include/config/MARKER FORCE ;
$(Q)$(MAKE) $(build)=$(SYS_UTIL_DIR) $@
$(SYS_UTIL_DIR)/mk_thread: $(ARCH_SYMLINKS) $(GEN_HEADERS) sys_prepare FORCE ;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [uml-devel] Quick and dirty patch for 2.6.5 + 2.6.4-um1 patch
2004-04-07 21:51 [uml-devel] Quick and dirty patch for 2.6.5 + 2.6.4-um1 patch Piotr Neuman
@ 2004-04-07 22:45 ` Henrik Nordstrom
0 siblings, 0 replies; 2+ messages in thread
From: Henrik Nordstrom @ 2004-04-07 22:45 UTC (permalink / raw)
To: Piotr Neuman; +Cc: user-mode-linux-devel
On Wed, 7 Apr 2004, Piotr Neuman wrote:
> Here it goes:
> diff -ruN linux/include/asm-i386/system.h uml/linux/include/asm-i386/system.h
> --- linux/include/asm-i386/system.h 2004-04-07 23:29:03.000000000 +0200
> +++ uml/linux/include/asm-i386/system.h 2004-04-07 23:24:39.000000000 +0200
> @@ -243,6 +243,7 @@
> #define __HAVE_ARCH_CMPXCHG 1
> #endif
>
> +#ifndef __UM_SYSTEM_I386_H
> static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old,
> unsigned long new, int size)
> {
> @@ -270,6 +271,8 @@
> return old;
> }
>
> +#endif
> +
> #define cmpxchg(ptr,o,n)\
> ((__typeof__(*(ptr)))__cmpxchg((ptr),(unsigned long)(o),\
> (unsigned long)(n),sizeof(*(ptr))))
For others impatient requiring 2.4: Same thing is needed for compiling
2.4.26-rc2...
Regards
Henrik
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-04-07 22:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-07 21:51 [uml-devel] Quick and dirty patch for 2.6.5 + 2.6.4-um1 patch Piotr Neuman
2004-04-07 22:45 ` Henrik Nordstrom
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.