svn commit: r304707 - projects/powernv/powerpc/powerpc
Nathan Whitehorn
nwhitehorn at FreeBSD.org
Tue Aug 23 21:41:28 UTC 2016
Author: nwhitehorn
Date: Tue Aug 23 21:41:27 2016
New Revision: 304707
URL: https://svnweb.freebsd.org/changeset/base/304707
Log:
Record the PIR for the BSP as well as for APs. It might not be zero.
Modified:
projects/powernv/powerpc/powerpc/machdep.c
Modified: projects/powernv/powerpc/powerpc/machdep.c
==============================================================================
--- projects/powernv/powerpc/powerpc/machdep.c Tue Aug 23 21:40:32 2016 (r304706)
+++ projects/powernv/powerpc/powerpc/machdep.c Tue Aug 23 21:41:27 2016 (r304707)
@@ -367,6 +367,7 @@ powerpc_init(vm_offset_t fdt, vm_offset_
pc->pc_curthread = &thread0;
thread0.td_oncpu = bsp.cr_cpuid;
pc->pc_cpuid = bsp.cr_cpuid;
+ pc->pc_pir = mfspr(SPR_PIR);
__asm __volatile("mtsprg 0, %0" :: "r"(pc));
/*
More information about the svn-src-projects
mailing list