K 10 svn:author V 3 kib K 8 svn:date V 27 2017-10-05T13:12:59.797736Z K 7 svn:log V 824 Ensure that after sucessfull i386_set_ldt() call, other threads can use LDT segments immediately. If the i386_set_ldt() call created a first LDT descriptor (and consequently created the LDT) for our address space, LDTR is currently loaded only on the CPU executing the syscall. Other CPUs executing threads sharing the address space, would only load LDTR after context switch. Uncomment set_user_ldt_rv() and call it on all CPUs. Remove critical section inside set_user_ldt(), it is not needed in the context of call from smp_rendezvous(). Set md_ldt after md_ldt_sd is initialized using the same code sequence as in user_ldt_free(). Do the whole initialization in a critical section, to not race with the context switching while we set LDT. Discussed with: bde Sponsored by: The FreeBSD Foundation MFC after: 1 week END