]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Set PCPU_GET(curpcb) for the BSP to thread0's pcb. Otherwise, the boot CPU
authorJohn Baldwin <jhb@FreeBSD.org>
Mon, 2 Feb 2004 23:22:24 +0000 (23:22 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 2 Feb 2004 23:22:24 +0000 (23:22 +0000)
commitb71aa5f5e9d7be338811828a8fefcf5bec52e894
tree59739b5279f5dc9c31d2c821d1e79e0b52b3592d
parentb74d89bbbb6bee8b4b9f8395482b4acd8879dcad
Set PCPU_GET(curpcb) for the BSP to thread0's pcb.  Otherwise, the boot CPU
doesn't have a pcb until after it's first context switch.  This can cause
secondary panics if a page fault happens during bootup.
sys/i386/i386/machdep.c