summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2017-03-07 12:16:47 +0000
committerkib <kib@FreeBSD.org>2017-03-07 12:16:47 +0000
commitcab2031fd56ae53b767980eaf2b60d6657322f86 (patch)
treeb267f803bd517dede6a6836d30a8f67e5106d74b /sys/i386
parent4710f6451c5de6e45714961a32b2acfe80bd59db (diff)
downloadFreeBSD-src-cab2031fd56ae53b767980eaf2b60d6657322f86.zip
FreeBSD-src-cab2031fd56ae53b767980eaf2b60d6657322f86.tar.gz
MFC r314429:
Initialize pcb_save for thread0.
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/machdep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index 8f652a7..fcc804c 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -2709,6 +2709,7 @@ init386(int first)
* area.
*/
thread0.td_pcb = get_pcb_td(&thread0);
+ thread0.td_pcb->pcb_save = get_pcb_user_save_td(&thread0);
bzero(get_pcb_user_save_td(&thread0), cpu_max_ext_state_size);
if (use_xsave) {
xhdr = (struct xstate_hdr *)(get_pcb_user_save_td(&thread0) +
OpenPOWER on IntegriCloud