| 130 | } |
| 131 | |
| 132 | bool KThread::isLdtEmpty(struct user_desc* desc) { |
| 133 | return (!desc || (desc->seg_not_present==1 && desc->read_exec_only==1)); |
| 134 | } |
| 135 | |
| 136 | struct user_desc* KThread::getLDT(U32 index) { |
| 137 | if (index>=TLS_ENTRY_START_INDEX && index<TLS_ENTRIES+TLS_ENTRY_START_INDEX) { |