svn commit: r314844 - in stable/11/sys: amd64/amd64 i386/i386
Konstantin Belousov
kib at FreeBSD.org
Tue Mar 7 12:16:48 UTC 2017
Author: kib
Date: Tue Mar 7 12:16:47 2017
New Revision: 314844
URL: https://svnweb.freebsd.org/changeset/base/314844
Log:
MFC r314429:
Initialize pcb_save for thread0.
Modified:
stable/11/sys/amd64/amd64/machdep.c
stable/11/sys/i386/i386/machdep.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/amd64/amd64/machdep.c
==============================================================================
--- stable/11/sys/amd64/amd64/machdep.c Tue Mar 7 12:09:14 2017 (r314843)
+++ stable/11/sys/amd64/amd64/machdep.c Tue Mar 7 12:16:47 2017 (r314844)
@@ -1734,6 +1734,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/11/sys/i386/i386/machdep.c
==============================================================================
--- stable/11/sys/i386/i386/machdep.c Tue Mar 7 12:09:14 2017 (r314843)
+++ stable/11/sys/i386/i386/machdep.c Tue Mar 7 12:16:47 2017 (r314844)
@@ -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) +
More information about the svn-src-stable-11
mailing list