search for: signal_32

Displaying 9 results from an estimated 9 matches for "signal_32".

2008 Nov 24
1
[LLVMdev] how to track down a kernel miscompilation?
One other note I forgot... sig_sysreturn (arch/x86/kernel/signal_32.c) has a magic fudge factor to fix up stack layout differences between llvm and gcc. If when you hit userspace you get signal handling errors, look at the frame addresses printed out and adjust the fudge factor to make the frame addresses match. (the code automatically enables the debug output af...
2008 Nov 24
0
[LLVMdev] how to track down a kernel miscompilation?
To get x86 to work, you need to compile /arch/x86/boot and /arch/x86/boot/compressed with gcc. The rest can be compiled with llvm-gcc. The only adjustment you need to make is to /arch/x86/kernel/signal_32.c to fix the stack offset in sys_sigreturn. Also you must compile with -O0. instcombine is causing the crashes you are seeing. I know mem2reg, sccp, simplifycfg, and dce result in a working kernel. (My build script does llvm-gcc -> opt with custom passes for my project -> llc. You also m...
2008 Nov 24
4
[LLVMdev] how to track down a kernel miscompilation?
Hi, I am trying to build the Linux kernel with LLVM. 'ARCH=um' appears to work, now I am trying to get 'ARCH=x86' to work. So far it seems there is something wrong with the boot vga code (it finds no video modes), the acpi code, and the serial console code. I am now trying to compile drivers/ with llvm-gcc and the rest with gcc-4.2 (I have a wrapper script), I am compiling to
2008 Nov 24
0
[LLVMdev] how to track down a kernel miscompilation?
For people who want to try hacking on the linux kernel with llvm, here is a head start: http://llvm.org/~alenhar2/k.tbz This is a 2.6.27.5 kernel with a .config file for qemu/kvm with virtio devices (I also think it will work with the default devices). The build process uses llvm-gcc -> opt -> llc so you can add your own (per-file) passes to the build process or debug specific passes.
2020 Mar 11
0
[PATCH -next 000/491] treewide: use fallthrough;
...+- arch/s390/mm/gmap.c | 6 +- arch/s390/mm/pgalloc.c | 2 +- arch/sh/drivers/platform_early.c | 2 +- arch/sh/kernel/disassemble.c | 4 +- arch/sh/kernel/kgdb.c | 2 +- arch/sh/kernel/signal_32.c | 2 +- arch/sh/kernel/signal_64.c | 2 +- arch/sparc/kernel/auxio_64.c | 1 - arch/sparc/kernel/central.c | 2 +- arch/sparc/kernel/kgdb_32.c | 3 +- arch/sparc/kernel/kgdb_64.c...
2020 Mar 11
0
[PATCH -next 000/491] treewide: use fallthrough;
...+- arch/s390/mm/gmap.c | 6 +- arch/s390/mm/pgalloc.c | 2 +- arch/sh/drivers/platform_early.c | 2 +- arch/sh/kernel/disassemble.c | 4 +- arch/sh/kernel/kgdb.c | 2 +- arch/sh/kernel/signal_32.c | 2 +- arch/sh/kernel/signal_64.c | 2 +- arch/sparc/kernel/auxio_64.c | 1 - arch/sparc/kernel/central.c | 2 +- arch/sparc/kernel/kgdb_32.c | 3 +- arch/sparc/kernel/kgdb_64.c...
2020 Mar 11
0
[PATCH -next 000/491] treewide: use fallthrough;
...+- arch/s390/mm/gmap.c | 6 +- arch/s390/mm/pgalloc.c | 2 +- arch/sh/drivers/platform_early.c | 2 +- arch/sh/kernel/disassemble.c | 4 +- arch/sh/kernel/kgdb.c | 2 +- arch/sh/kernel/signal_32.c | 2 +- arch/sh/kernel/signal_64.c | 2 +- arch/sparc/kernel/auxio_64.c | 1 - arch/sparc/kernel/central.c | 2 +- arch/sparc/kernel/kgdb_32.c | 3 +- arch/sparc/kernel/kgdb_64.c...
2020 Mar 11
0
[PATCH -next 000/491] treewide: use fallthrough;
...+- arch/s390/mm/gmap.c | 6 +- arch/s390/mm/pgalloc.c | 2 +- arch/sh/drivers/platform_early.c | 2 +- arch/sh/kernel/disassemble.c | 4 +- arch/sh/kernel/kgdb.c | 2 +- arch/sh/kernel/signal_32.c | 2 +- arch/sh/kernel/signal_64.c | 2 +- arch/sparc/kernel/auxio_64.c | 1 - arch/sparc/kernel/central.c | 2 +- arch/sparc/kernel/kgdb_32.c | 3 +- arch/sparc/kernel/kgdb_64.c...
2020 Mar 11
0
[PATCH -next 000/491] treewide: use fallthrough;
...+- arch/s390/mm/gmap.c | 6 +- arch/s390/mm/pgalloc.c | 2 +- arch/sh/drivers/platform_early.c | 2 +- arch/sh/kernel/disassemble.c | 4 +- arch/sh/kernel/kgdb.c | 2 +- arch/sh/kernel/signal_32.c | 2 +- arch/sh/kernel/signal_64.c | 2 +- arch/sparc/kernel/auxio_64.c | 1 - arch/sparc/kernel/central.c | 2 +- arch/sparc/kernel/kgdb_32.c | 3 +- arch/sparc/kernel/kgdb_64.c...