Lines Matching refs:ldt
950 struct modify_ldt_ldt_s ldt;
959 ldt.entry_number = 1;
960 ldt.base_addr = (unsigned long)&seg_data1;
961 ldt.limit = (sizeof(seg_data1) + 0xfff) >> 12;
962 ldt.seg_32bit = 1;
963 ldt.contents = MODIFY_LDT_CONTENTS_DATA;
964 ldt.read_exec_only = 0;
965 ldt.limit_in_pages = 1;
966 ldt.seg_not_present = 0;
967 ldt.useable = 1;
968 modify_ldt(1, &ldt, sizeof(ldt)); /* write ldt entry */
970 ldt.entry_number = 2;
971 ldt.base_addr = (unsigned long)&seg_data2;
972 ldt.limit = (sizeof(seg_data2) + 0xfff) >> 12;
973 ldt.seg_32bit = 1;
974 ldt.contents = MODIFY_LDT_CONTENTS_DATA;
975 ldt.read_exec_only = 0;
976 ldt.limit_in_pages = 1;
977 ldt.seg_not_present = 0;
978 ldt.useable = 1;
979 modify_ldt(1, &ldt, sizeof(ldt)); /* write ldt entry */
1050 struct modify_ldt_ldt_s ldt;
1054 ldt.entry_number = 1;
1055 ldt.base_addr = (unsigned long)&code16_start;
1056 ldt.limit = &code16_end - &code16_start;
1057 ldt.seg_32bit = 0;
1058 ldt.contents = MODIFY_LDT_CONTENTS_CODE;
1059 ldt.read_exec_only = 0;
1060 ldt.limit_in_pages = 0;
1061 ldt.seg_not_present = 0;
1062 ldt.useable = 1;
1063 modify_ldt(1, &ldt, sizeof(ldt)); /* write ldt entry */
1349 struct modify_ldt_ldt_s ldt;
1390 ldt.entry_number = 1;
1391 ldt.base_addr = (unsigned long)&seg_data1;
1392 ldt.limit = (sizeof(seg_data1) + 0xfff) >> 12;
1393 ldt.seg_32bit = 1;
1394 ldt.contents = MODIFY_LDT_CONTENTS_DATA;
1395 ldt.read_exec_only = 0;
1396 ldt.limit_in_pages = 1;
1397 ldt.seg_not_present = 1;
1398 ldt.useable = 1;
1399 modify_ldt(1, &ldt, sizeof(ldt)); /* write ldt entry */