[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>
Showing
- arch/um/include/os.h 1 addition, 0 deletionsarch/um/include/os.h
- arch/um/include/sysdep-i386/tls.h 4 additions, 0 deletionsarch/um/include/sysdep-i386/tls.h
- arch/um/include/user_util.h 3 additions, 0 deletionsarch/um/include/user_util.h
- arch/um/os-Linux/sys-i386/Makefile 1 addition, 1 deletionarch/um/os-Linux/sys-i386/Makefile
- arch/um/os-Linux/sys-i386/tls.c 33 additions, 0 deletionsarch/um/os-Linux/sys-i386/tls.c
- arch/um/os-Linux/tls.c 2 additions, 2 deletionsarch/um/os-Linux/tls.c
- arch/um/sys-i386/tls.c 53 additions, 2 deletionsarch/um/sys-i386/tls.c
- include/asm-um/segment.h 5 additions, 1 deletioninclude/asm-um/segment.h
Loading
Please register or sign in to comment