From owner-svn-src-projects@FreeBSD.ORG Sat May 3 15:53:13 2014 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DCCD1F38; Sat, 3 May 2014 15:53:13 +0000 (UTC) Received: from svn.freebsd.org (svn.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 CA5AA18ED; Sat, 3 May 2014 15:53:13 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s43FrDGw031136; Sat, 3 May 2014 15:53:13 GMT (envelope-from andrew@svn.freebsd.org) Received: (from andrew@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s43FrDAQ031135; Sat, 3 May 2014 15:53:13 GMT (envelope-from andrew@svn.freebsd.org) Message-Id: <201405031553.s43FrDAQ031135@svn.freebsd.org> From: Andrew Turner Date: Sat, 3 May 2014 15:53:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r265271 - projects/arm64/sys/arm64/arm64 X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 May 2014 15:53:13 -0000 Author: andrew Date: Sat May 3 15:53:13 2014 New Revision: 265271 URL: http://svnweb.freebsd.org/changeset/base/265271 Log: Add the initialisation for the pcpu data. Modified: projects/arm64/sys/arm64/arm64/machdep.c Modified: projects/arm64/sys/arm64/arm64/machdep.c ============================================================================== --- projects/arm64/sys/arm64/arm64/machdep.c Sat May 3 15:33:48 2014 (r265270) +++ projects/arm64/sys/arm64/arm64/machdep.c Sat May 3 15:53:13 2014 (r265271) @@ -200,8 +200,6 @@ cpu_est_clockrate(int cpu_id, uint64_t * void cpu_pcpu_init(struct pcpu *pcpu, int cpuid, size_t size) { - - panic("cpu_pcpu_init"); } /* TODO: Move to swtch.S and implemenet */ @@ -480,6 +478,8 @@ initarm(struct arm64_bootparams *abp) } printf("Total = %llx\n", mem_len); + pcpu_init(pcpup, 0, sizeof(struct pcpu)); + /* Bootstrap enough of pmap to enter the kernel proper */ pmap_bootstrap(abp->kern_l1pt, KERNBASE - abp->kern_delta, lastaddr - KERNBASE);