Re: [git pull] generic bitops, take 2

From: Ingo Molnar
Date: Sat Apr 26 2008 - 13:29:19 EST



* Ingo Molnar <mingo@xxxxxxx> wrote:

> perhaps the combination of distcc and crosscompilers doesnt work well
> on UML? (it works fine with other architectures)

so i tried a third build method, gcc 3.4, and that built it fine but UML
crashed during bootup:

dione:~/linux/linux-x86.q> ./linux
Core dump limits :
soft - 0
hard - NONE
Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...OK
Checking advanced syscall emulation patch for ptrace...OK
Checking for tmpfs mount on /dev/shm...OK
Checking PROT_EXEC mmap in /dev/shm/...OK
Checking for the skas3 patch in the host:
- /proc/mm...not found: No such file or directory
- PTRACE_FAULTINFO...not found
- PTRACE_LDT...not found
UML running in SKAS0 mode
Segmentation fault

(gdb) bt
#0 0x000000006020fd92 in txInit ()
#1 0x000000006000a4c1 in init_jfs_fs ()
#2 0x0000000060001794 in do_initcalls ()
#3 0x000000006000196d in do_basic_setup ()
#4 0x0000000060001a14 in kernel_init ()
#5 0x0000000060028427 in run_kernel_thread ()
#6 0x000000006001d020 in new_thread_handler ()
#7 0x0000000000000000 in ?? ()

rip 0x6020fd92 0x6020fd92 <txInit+306>

txInit is in JFS.

but at least i could build UML. (this is all with pristine -git)

So i checked the patch below. And it built fine, and boo^H^Hcrashed just
like it did before:

- PTRACE_FAULTINFO...not found
- PTRACE_LDT...not found
UML running in SKAS0 mode
Segmentation fault

so i guess this is the way to go?

Ingo

---------------------->
Subject: uml: kconfig cleanup
From: Ingo Molnar <mingo@xxxxxxx>
Date: Sat Apr 26 19:10:17 CEST 2008

Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
---
arch/um/Kconfig.x86_64 | 7 +++++++
1 file changed, 7 insertions(+)

Index: linux-x86.q/arch/um/Kconfig.x86_64
===================================================================
--- linux-x86.q.orig/arch/um/Kconfig.x86_64
+++ linux-x86.q/arch/um/Kconfig.x86_64
@@ -1,3 +1,10 @@
+
+menu "Host processor type and features"
+
+source "arch/x86/Kconfig.cpu"
+
+endmenu
+
config UML_X86
bool
default y
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/