From owner-svn-src-projects@freebsd.org Thu Oct 11 19:18:06 2018 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D1F5010C4E7C for ; Thu, 11 Oct 2018 19:18:06 +0000 (UTC) (envelope-from luporl@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7E40D7E131; Thu, 11 Oct 2018 19:18:06 +0000 (UTC) (envelope-from luporl@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 75A6A14A56; Thu, 11 Oct 2018 19:18:06 +0000 (UTC) (envelope-from luporl@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w9BJI6H1067451; Thu, 11 Oct 2018 19:18:06 GMT (envelope-from luporl@FreeBSD.org) Received: (from luporl@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w9BJI6Ak067450; Thu, 11 Oct 2018 19:18:06 GMT (envelope-from luporl@FreeBSD.org) Message-Id: <201810111918.w9BJI6Ak067450@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: luporl set sender to luporl@FreeBSD.org using -f From: Leandro Lupori Date: Thu, 11 Oct 2018 19:18:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r339316 - projects/power8_bringup_hacks/sys/powerpc/powerpc X-SVN-Group: projects X-SVN-Commit-Author: luporl X-SVN-Commit-Paths: projects/power8_bringup_hacks/sys/powerpc/powerpc X-SVN-Commit-Revision: 339316 X-SVN-Commit-Repository: base 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.27 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: Thu, 11 Oct 2018 19:18:07 -0000 Author: luporl Date: Thu Oct 11 19:18:06 2018 New Revision: 339316 URL: https://svnweb.freebsd.org/changeset/base/339316 Log: Initialize SPRG0 before its first possible use. Modified: projects/power8_bringup_hacks/sys/powerpc/powerpc/machdep.c Modified: projects/power8_bringup_hacks/sys/powerpc/powerpc/machdep.c ============================================================================== --- projects/power8_bringup_hacks/sys/powerpc/powerpc/machdep.c Thu Oct 11 19:06:54 2018 (r339315) +++ projects/power8_bringup_hacks/sys/powerpc/powerpc/machdep.c Thu Oct 11 19:18:06 2018 (r339316) @@ -383,12 +383,12 @@ powerpc_init(vm_offset_t fdt, vm_offset_t toc, vm_offs if (platform_smp_get_bsp(&bsp) != 0) bsp.cr_cpuid = 0; pc = &__pcpu[bsp.cr_cpuid]; + __asm __volatile("mtsprg 0, %0" :: "r"(pc)); pcpu_init(pc, bsp.cr_cpuid, sizeof(struct pcpu)); pc->pc_curthread = &thread0; thread0.td_oncpu = bsp.cr_cpuid; pc->pc_cpuid = bsp.cr_cpuid; pc->pc_hwref = bsp.cr_hwref; - __asm __volatile("mtsprg 0, %0" :: "r"(pc)); /* * Init KDB