[PATCH] uml: split ldt.h in arch-independent and arch-dependant code
commitfbdf2161552a2065047e5df2dbf9ebf69d66a0e9
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Fri, 31 Mar 2006 10:30:19 +0000 (31 02:30 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 31 Mar 2006 20:18:51 +0000 (31 12:18 -0800)
tree67d1adf47db4d80b712e276e348f2d4ec6da251d
parent12523bdce1a6b5a3a2627b9901162bbd3eef33ed
[PATCH] uml: split ldt.h in arch-independent and arch-dependant code

ldt-{i386,x86_64}.h is made of two different parts - some code for parsing of
LDT descriptors, which is arch-dependant, and the code to handle uml_ldt_t (an
LDT block inside UML), which is mostly arch-independant (among x86 and x86_64,
at least).

Join the common part in a single file (ldt.h) and split the rest away
(host_ldt-{i386,x86_64}.h).

This is needed because processor.h, with next patches, will start including
the LDT descriptor parsing macros in host_ldt.h, but it can't include ldt.h
because it uses semaphores (and to define semaphores one must first include
processor.h!).

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Acked-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/Makefile
include/asm-um/host_ldt-i386.h [new file with mode: 0644]
include/asm-um/host_ldt-x86_64.h [moved from include/asm-um/ldt-x86_64.h with 53% similarity]
include/asm-um/ldt-i386.h [deleted file]
include/asm-um/ldt.h [new file with mode: 0644]