- 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;
+ get_spinlock(&modify_ldt_lock,(long)thread);
+ n=modify_ldt(0,local_ldt_copy,sizeof local_ldt_copy);