Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jul 2015 09:24:46 +0000 (UTC)
From:      Zbigniew Bodek <zbb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r285597 - head/sys/arm64/arm64
Message-ID:  <201507150924.t6F9OkZZ074069@svnmir.geo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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();
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507150924.t6F9OkZZ074069>