[PATCH] uml: check for differences in host support
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Fri, 31 Mar 2006 10:30:25 +0000 (02:30 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 31 Mar 2006 20:18:52 +0000 (12:18 -0800)
commit3feb88562d149f078319e5a1b2f7acaa10251a5c
tree73fb00f0ecb9ed0c4cf8eec24c84253ce9620464
parent54d8d3b5a0ce1cdbad1d3154c9ea9732d394e9c7
[PATCH] uml: check for differences in host support

If running on a host not supporting TLS (for instance 2.4) we should report
that cleanly to the user, instead of printing not comprehensible "error 5" for
that.

Additionally, i386 and x86_64 support different ranges for
user_desc->entry_number, and we must account for that; we couldn't pass
ourselves -1 because we need to override previously existing TLS descriptors
which glibc has possibly set, so test at startup the range to use.

x86 and x86_64 existing ranges are hardcoded.

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/include/os.h
arch/um/include/sysdep-i386/tls.h
arch/um/include/user_util.h
arch/um/os-Linux/sys-i386/Makefile
arch/um/os-Linux/sys-i386/tls.c [new file with mode: 0644]
arch/um/os-Linux/tls.c
arch/um/sys-i386/tls.c
include/asm-um/segment.h