svn commit: r314845 - in stable/10/sys: amd64/amd64 i386/i386
Konstantin Belousov
kib at FreeBSD.org
Tue Mar 7 12:24:03 UTC 2017
Author: kib
Date: Tue Mar 7 12:24:02 2017
New Revision: 314845
URL: https://svnweb.freebsd.org/changeset/base/314845
Log:
MFC r314429:
Initialize pcb_save for thread0.
Modified:
stable/10/sys/amd64/amd64/machdep.c
stable/10/sys/i386/i386/machdep.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/amd64/amd64/machdep.c
==============================================================================
--- stable/10/sys/amd64/amd64/machdep.c Tue Mar 7 12:16:47 2017 (r314844)
+++ stable/10/sys/amd64/amd64/machdep.c Tue Mar 7 12:24:02 2017 (r314845)
@@ -2023,6 +2023,7 @@ hammer_time(u_int64_t modulep, u_int64_t
* 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) +
Modified: stable/10/sys/i386/i386/machdep.c
==============================================================================
--- stable/10/sys/i386/i386/machdep.c Tue Mar 7 12:16:47 2017 (r314844)
+++ stable/10/sys/i386/i386/machdep.c Tue Mar 7 12:24:02 2017 (r314845)
@@ -3420,6 +3420,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);
#ifdef CPU_ENABLE_SSE
if (use_xsave) {
More information about the svn-src-stable
mailing list