svn commit: r285597 - head/sys/arm64/arm64

Zbigniew Bodek zbb at FreeBSD.org
Wed Jul 15 09:24:46 UTC 2015


Author: zbb
Date: Wed Jul 15 09:24:45 2015
New Revision: 285597
URL: https://svnweb.freebsd.org/changeset/base/285597

Log:
  Add identify_cpu() to ARM64 init_secondary routine
  
  Identify current CPU. This is necessary to setup
  affinity registers and to provide support for
  runtime chip identification.
  
  Reviewed by:   andrew
  Obtained from: Semihalf
  Sponsored by:  The FreeBSD Foundation
  Differential Revision: https://reviews.freebsd.org/D3095

Modified:
  head/sys/arm64/arm64/mp_machdep.c

Modified: head/sys/arm64/arm64/mp_machdep.c
==============================================================================
--- head/sys/arm64/arm64/mp_machdep.c	Wed Jul 15 09:14:06 2015	(r285596)
+++ head/sys/arm64/arm64/mp_machdep.c	Wed Jul 15 09:24:45 2015	(r285597)
@@ -229,6 +229,13 @@ init_secondary(uint64_t cpu)
 	pcpup->pc_curthread = pcpup->pc_idlethread;
 	pcpup->pc_curpcb = pcpup->pc_idlethread->td_pcb;
 
+	/*
+	 * Identify current CPU. This is necessary to setup
+	 * affinity registers and to provide support for
+	 * runtime chip identification.
+	 */
+	identify_cpu();
+
 	/* Configure the interrupt controller */
 	arm_init_secondary();
 


More information about the svn-src-all mailing list