From owner-svn-src-head@freebsd.org Wed Jul 15 09:24:46 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C47FB99CFFA; Wed, 15 Jul 2015 09:24:46 +0000 (UTC) (envelope-from zbb@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B4EA51B73; Wed, 15 Jul 2015 09:24:46 +0000 (UTC) (envelope-from zbb@FreeBSD.org) Received: from svnmir.geo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.14.9/8.14.9) with ESMTP id t6F9OkSg074070; Wed, 15 Jul 2015 09:24:46 GMT (envelope-from zbb@FreeBSD.org) Received: (from zbb@localhost) by svnmir.geo.freebsd.org (8.14.9/8.14.9/Submit) id t6F9OkZZ074069; Wed, 15 Jul 2015 09:24:46 GMT (envelope-from zbb@FreeBSD.org) Message-Id: <201507150924.t6F9OkZZ074069@svnmir.geo.freebsd.org> X-Authentication-Warning: svnmir.geo.freebsd.org: zbb set sender to zbb@FreeBSD.org using -f From: Zbigniew Bodek Date: Wed, 15 Jul 2015 09:24:46 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r285597 - head/sys/arm64/arm64 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 09:24:46 -0000 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();