The below patch was needed to make UML compile in latest -mm.

But sometimes it doesn't boot and does weird things (this is a sample
with init=/bin/bash):

[    0.420000] EXT3-fs: mounted filesystem with ordered data mode.
[    0.420000] VFS: Mounted root (ext3 filesystem) readonly.
(none):/# ls
(none):/# ls -al
total 70
drwxr-xr-x 23 root root   1024 May  4  2007 .
drwxr-xr-x 23 root root   1024 May  4  2007 ..
drwxr-xr-x  2 root root   2048 Feb 18  2007 bin
drwxr-xr-x  2 root root   1024 May 16  2005 boot
[...]
(none):/# ls
Segmentation fault
(none):/# ls -l
: : No such file or directory

Miklos
----

Index: linux/arch/um/Kconfig
===================================================================
--- linux.orig/arch/um/Kconfig  2008-01-02 14:54:04.000000000 +0100
+++ linux/arch/um/Kconfig       2008-01-02 17:01:36.000000000 +0100
@@ -223,6 +223,10 @@ config KERNEL_STACK_ORDER
 
 endmenu
 
+config HZ
+       int
+       default 100
+
 source "init/Kconfig"
 
 source "drivers/block/Kconfig"
Index: linux/include/asm-um/param.h
===================================================================
--- linux.orig/include/asm-um/param.h   2007-10-09 22:31:38.000000000 +0200
+++ linux/include/asm-um/param.h        2008-01-02 17:02:31.000000000 +0100
@@ -10,7 +10,7 @@
 #define MAXHOSTNAMELEN  64      /* max length of hostname */
 
 #ifdef __KERNEL__
-#define HZ 100
+#define HZ CONFIG_HZ
 #define USER_HZ        100        /* .. some user interfaces are in "ticks" */
 #define CLOCKS_PER_SEC (USER_HZ)  /* frequency at which times() counts */
 #endif

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to