]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Initialize pcb_save for thread0.
authorkib <kib@FreeBSD.org>
Tue, 28 Feb 2017 22:54:52 +0000 (22:54 +0000)
committerkib <kib@FreeBSD.org>
Tue, 28 Feb 2017 22:54:52 +0000 (22:54 +0000)
commit06450fe6c4f3950227ead137fdc865bafd0f382d
treeb3866ff025fd7359d4ddb4c9dfb08a21c6632800
parent3d53fa4bc3527946220714549f2f363a76d14700
Initialize pcb_save for thread0.

Otherwise kernel traps on NULL dereference if fpu_kern(9) is used from the
thread0 context.

Reported by: cem
Reviewed by: cem, jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
sys/amd64/amd64/machdep.c
sys/i386/i386/machdep.c