From owner-svn-src-projects@FreeBSD.ORG Sat Jan 4 23:53:12 2014 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 45094BBC; Sat, 4 Jan 2014 23:53:12 +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)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 303F11D45; Sat, 4 Jan 2014 23:53:12 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id s04NrCFY067610; Sat, 4 Jan 2014 23:53:12 GMT (envelope-from marcel@svn.freebsd.org) Received: (from marcel@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id s04NrBof067608; Sat, 4 Jan 2014 23:53:11 GMT (envelope-from marcel@svn.freebsd.org) Message-Id: <201401042353.s04NrBof067608@svn.freebsd.org> From: Marcel Moolenaar Date: Sat, 4 Jan 2014 23:53:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r260309 - in projects/altix2/sys/ia64: ia64 include 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, 04 Jan 2014 23:53:12 -0000 Author: marcel Date: Sat Jan 4 23:53:11 2014 New Revision: 260309 URL: http://svnweb.freebsd.org/changeset/base/260309 Log: Save the slice in which the CPU is located in the PCPU structure. We need to know that when we want to send PTC operations to the SHub. Modified: projects/altix2/sys/ia64/ia64/machdep.c projects/altix2/sys/ia64/include/pcpu.h Modified: projects/altix2/sys/ia64/ia64/machdep.c ============================================================================== --- projects/altix2/sys/ia64/ia64/machdep.c Sat Jan 4 23:48:20 2014 (r260308) +++ projects/altix2/sys/ia64/ia64/machdep.c Sat Jan 4 23:53:11 2014 (r260309) @@ -539,6 +539,7 @@ cpu_pcpu_setup(struct pcpu *pc, u_int ac if (r.sal_status != 0) return; pc->pc_md.sgisn_nasid = r.sal_result[0]; + pc->pc_md.sgisn_slice = r.sal_result[2]; r = ia64_sal_entry(SAL_SGISN_SN_INFO, 0, 0, 0, 0, 0, 0, 0); if (r.sal_status != 0) Modified: projects/altix2/sys/ia64/include/pcpu.h ============================================================================== --- projects/altix2/sys/ia64/include/pcpu.h Sat Jan 4 23:48:20 2014 (r260308) +++ projects/altix2/sys/ia64/include/pcpu.h Sat Jan 4 23:53:11 2014 (r260309) @@ -56,6 +56,7 @@ struct pcpu_md { uint32_t clock_mode; /* Clock ET mode */ uint32_t sgisn_nasid; uint64_t sgisn_ipip; + uint32_t sgisn_slice; uint32_t awake:1; /* CPU is awake? */ struct pcpu_stats stats; /* Interrupt stats. */ #ifdef _KERNEL