1, MODIFY_LDT_CONTENTS_DATA, 0, 0, 0, 1
};
int n;
1, MODIFY_LDT_CONTENTS_DATA, 0, 0, 0, 1
};
int n;
thread_mutex_lock(&modify_ldt_lock);
n=modify_ldt(0,local_ldt_copy,sizeof local_ldt_copy);
/* get next free ldt entry */
thread_mutex_lock(&modify_ldt_lock);
n=modify_ldt(0,local_ldt_copy,sizeof local_ldt_copy);
/* get next free ldt entry */
#ifdef LISP_FEATURE_C_STACK_IS_CONTROL_STACK
/* Signal handlers are run on the control stack, so if it is exhausted
* we had better use an alternate stack for whatever signal tells us
#ifdef LISP_FEATURE_C_STACK_IS_CONTROL_STACK
/* Signal handlers are run on the control stack, so if it is exhausted
* we had better use an alternate stack for whatever signal tells us
ldt_entry.entry_number=thread->tls_cookie;
thread_mutex_lock(&modify_ldt_lock);
result = modify_ldt(1, &ldt_entry, sizeof (ldt_entry));
ldt_entry.entry_number=thread->tls_cookie;
thread_mutex_lock(&modify_ldt_lock);
result = modify_ldt(1, &ldt_entry, sizeof (ldt_entry));