Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54301
b: refs/heads/master
c: 65a58ab
h: refs/heads/master
i:
  54299: cc3ff3f
v: v3
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed May 7, 2007
1 parent 9eb4e66 commit fb5ebe0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a18ff1bde0c3da9ece3ba60e6eae2ef87f91a12e
refs/heads/master: 65a58ab044308ae65ca06c50fb10be5e0e080989
11 changes: 8 additions & 3 deletions trunk/arch/um/sys-i386/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@
#include "skas.h"
#endif

/* If needed we can detect when it's uninitialized. */
/*
* If needed we can detect when it's uninitialized.
*
* These are initialized in an initcall and unchanged thereafter.
*/
static int host_supports_tls = -1;
int host_gdt_entry_tls_min = -1;
int host_gdt_entry_tls_min;

#ifdef CONFIG_MODE_SKAS
int do_set_thread_area_skas(struct user_desc *info)
Expand Down Expand Up @@ -361,7 +365,8 @@ int ptrace_get_thread_area(struct task_struct *child, int idx,

/* XXX: This part is probably common to i386 and x86-64. Don't create a common
* file for now, do that when implementing x86-64 support.*/
static int __init __setup_host_supports_tls(void) {
static int __init __setup_host_supports_tls(void)
{
check_host_supports_tls(&host_supports_tls, &host_gdt_entry_tls_min);
if (host_supports_tls) {
printk(KERN_INFO "Host TLS support detected\n");
Expand Down

0 comments on commit fb5ebe0

Please sign in to comment.