Missed kern_windrv.c in the last checkin.
This commit is contained in:
parent
450a94af7a
commit
0b6c3bf1bc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146428
@ -664,6 +664,20 @@ ctxsw_utow(void)
|
||||
struct tid *t;
|
||||
|
||||
t = &my_tids[curthread->td_oncpu];
|
||||
|
||||
/*
|
||||
* Ugly hack. During system bootstrap (cold == 1), only CPU 0
|
||||
* is running. So if we were loaded at bootstrap, only CPU 0
|
||||
* will have our special GDT entry. This is a problem for SMP
|
||||
* systems, so to deal with this, we check here to make sure
|
||||
* the TID for this processor has been initialized, and if it
|
||||
* hasn't, we need to do it right now or else things will
|
||||
* explode.
|
||||
*/
|
||||
|
||||
if (t->tid_self != t)
|
||||
x86_newldt(NULL);
|
||||
|
||||
t->tid_oldfs = x86_getfs();
|
||||
t->tid_cpu = curthread->td_oncpu;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user