Date: Sat, 4 Jan 2014 23:53:11 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r260309 - in projects/altix2/sys/ia64: ia64 include Message-ID: <201401042353.s04NrBof067608@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401042353.s04NrBof067608>