[uml-devel] [2.6 patch] UML: "extern inline" -> "static inline"

2007-08-14 Thread Adrian Bunk
"extern inline" will have different semantics with gcc 4.3. Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> --- include/asm-um/pgalloc.h |2 +- include/asm-um/pgtable-3level.h |2 +- include/asm-um/processor-x86_64.h |2 +- include/asm-um/smp.h |2 +- 4 fi

[uml-devel] [PATCH 14/14] UML - Replace clone with fork

2007-08-14 Thread Jeff Dike
Convert the boot-time host ptrace testing from clone to fork. They were essentially doing fork anyway. This cleans up the code a bit, and makes valgrind a bit happier about grinding it. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/os-Linux/start_up.c | 55 --

[uml-devel] [PATCH 3/14] UML - Style fixes pass 1

2007-08-14 Thread Jeff Dike
Formatting changes in the files which have been changed in the tt-removal patchset so far. These include: copyright updates header file trimming style fixes adding severity to printks indenting Kconfig help according to the predominant kernel style These ch

[uml-devel] [PATCH 13/14] UML - Remove os_* usage from userspace files

2007-08-14 Thread Jeff Dike
This patch fixes some userspace files which were calling libc through the os_* wrappers. It turns out that there was only one user of os_new_tty_pgrp, so it can be deleted. There are also some style and whitespace fixes in here. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/drivers/ch

[uml-devel] [PATCH 11/14] UML - Rename pt_regs general-purpose register file

2007-08-14 Thread Jeff Dike
Before the removal of tt mode, access to a register on the skas-mode side of a pt_regs struct looked like pt_regs.regs.skas.regs.regs[FOO]. This was bad enough, but it became pt_regs.regs.regs.regs[FOO] with the removal of the union from the middle. To get rid of the run of three "regs", the last

[uml-devel] [PATCH 10/14] UML - Fold mmu_context_skas into mm_context

2007-08-14 Thread Jeff Dike
This patch folds mmu_context_skas into struct mm_context, changing all users of these structures as needed. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/include/skas/mmu-skas.h | 23 - arch/um/include/tlb.h |2 - arch/um/include/um_mmu.h| 1

[uml-devel] [PATCH 2/14] UML - Remove sysdep/thread.h

2007-08-14 Thread Jeff Dike
This patch removes thread.h, which turns out not to be needed any more. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/include/sysdep-i386/kernel-offsets.h |1 - arch/um/include/sysdep-i386/sigcontext.h |3 ++- arch/um/include/sysdep-i386/thread.h |8 arc

[uml-devel] [PATCH 12/14] UML - Free LDT state on process exit

2007-08-14 Thread Jeff Dike
The space allocated for a process LDT wasn't being freed when the process exited. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- arch/um/kernel/skas/mmu.c |2 ++ 1 file changed, 2 insertions(+) Index: linux-2.6.22/arch/um/kernel/skas/mmu.c ===

[uml-devel] [PATCH 4/14] UML - Throw out CHOOSE_MODE

2007-08-14 Thread Jeff Dike
The next stage after removing code which depends on CONFIG_MODE_TT is removing the CHOOSE_MODE abstraction, which provided both compile-time and run-time branching to either tt-mode or skas-mode code. This patch removes choose-mode.h and all inclusions of it, and replaces all CHOOSE_MODE invocatio

[uml-devel] [PATCH 8/14] UML - Remove __u64 usage from physical memory subsystem

2007-08-14 Thread Jeff Dike
Eliminate some uses of __u64 in the physical memory support. It's hard to get a definition of __u64 in both kernel and userspace code on x86_64, so this changes them to unsigned long long. There are also a copyright update and formatting comment removal from the affected header. Signed-off-by: J

[uml-devel] [PATCH 9/14] UML - Get rid of do_longjmp

2007-08-14 Thread Jeff Dike
do_longjmp used to be needed when UML didn't have its own implementation of setjmp and longjmp. They came from libc, and couldn't be called directly from kernel code, as the libc jmp_buf couldn't be imported there. do_longjmp was a userspace function which served to provide longjmp access to kern

[uml-devel] [PATCH 5/14] UML - Style fixes pass 2

2007-08-14 Thread Jeff Dike
Formatting changes in the files which have been changed in the course of removing CHOOSE_MODE. These include: copyright updates header file trimming style fixes adding severity to printks These changes should be entirely non-functional. Signed-off-by: Jeff Dike <[

[uml-devel] [PATCH 0/14] UML - Get rid of tt mode

2007-08-14 Thread Jeff Dike
This set of patches is 2.6.24 material. It throws out tt mode, which has been non-functional for a while. This is done in phases, interspersed with code cleanups on the affected files. The removal is done as follows: remove all code, config options, and files which depend on CONFIG_MODE_