- /* this must be called from a function that has an exclusive lock
- * on all_threads
- */
- struct modify_ldt_ldt_s ldt_entry = {
- 1, 0, 0, /* index, address, length filled in later */
- 1, MODIFY_LDT_CONTENTS_DATA, 0, 0, 0, 1
- };
- get_spinlock(&modify_ldt_lock,thread);
-
+ struct user_desc ldt_entry = {
+ 1, 0, 0, /* index, address, length filled in later */
+ 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);