summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorfsmp <fsmp@FreeBSD.org>1997-06-27 23:19:43 +0000
committerfsmp <fsmp@FreeBSD.org>1997-06-27 23:19:43 +0000
commita30e0bc8c5ab0ce07f2fa78bcd0f968921fcf232 (patch)
treecfb2010b52cc0abe8458bfb9509fb90af99a3bb3 /sys
parent7fa336497afa64b87e33edd06bd3ed2375e32aa4 (diff)
downloadFreeBSD-src-a30e0bc8c5ab0ce07f2fa78bcd0f968921fcf232.zip
FreeBSD-src-a30e0bc8c5ab0ce07f2fa78bcd0f968921fcf232.tar.gz
Added other_cpus to CPU private page.
This variable is a bitmap showing all CPUs present EXCEPT the CPU owning the variable. In other words, it is equal to the global bitmap 'all_cpus' minus its own bit.
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/locore.S6
-rw-r--r--sys/amd64/amd64/locore.s6
-rw-r--r--sys/i386/i386/locore.s6
3 files changed, 12 insertions, 6 deletions
diff --git a/sys/amd64/amd64/locore.S b/sys/amd64/amd64/locore.S
index 44ddcbb..1df2ce0 100644
--- a/sys/amd64/amd64/locore.S
+++ b/sys/amd64/amd64/locore.S
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
- * $Id: locore.s,v 1.88 1997/05/29 05:11:09 peter Exp $
+ * $Id: locore.s,v 1.1 1997/06/27 18:33:41 smp Exp smp $
*
* originally from: locore.s, by William F. Jolitz
*
@@ -102,7 +102,7 @@
.set _SMP_ioapic,_SMP_prvstart + (16 * PAGE_SIZE)
.globl _cpuid,_curproc,_curpcb,_npxproc,_runtime,_cpu_lockid
- .globl _common_tss
+ .globl _common_tss,_other_cpus
.set _cpuid,_SMP_prvpage+0
.set _curproc,_SMP_prvpage+4
.set _curpcb,_SMP_prvpage+8
@@ -110,6 +110,8 @@
.set _runtime,_SMP_prvpage+16 /* 8 bytes struct timeval */
.set _cpu_lockid,_SMP_prvpage+24
.set _common_tss,_SMP_prvpage+28 /* 104 bytes long, next = 132 */
+ .set _other_cpus,_SMP_prvpage+132 /* bitmap of available CPUs,
+ excluding ourself */
/* Fetch the .set's for the local apic */
#include "i386/i386/mp_apicdefs.s"
diff --git a/sys/amd64/amd64/locore.s b/sys/amd64/amd64/locore.s
index 44ddcbb..1df2ce0 100644
--- a/sys/amd64/amd64/locore.s
+++ b/sys/amd64/amd64/locore.s
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
- * $Id: locore.s,v 1.88 1997/05/29 05:11:09 peter Exp $
+ * $Id: locore.s,v 1.1 1997/06/27 18:33:41 smp Exp smp $
*
* originally from: locore.s, by William F. Jolitz
*
@@ -102,7 +102,7 @@
.set _SMP_ioapic,_SMP_prvstart + (16 * PAGE_SIZE)
.globl _cpuid,_curproc,_curpcb,_npxproc,_runtime,_cpu_lockid
- .globl _common_tss
+ .globl _common_tss,_other_cpus
.set _cpuid,_SMP_prvpage+0
.set _curproc,_SMP_prvpage+4
.set _curpcb,_SMP_prvpage+8
@@ -110,6 +110,8 @@
.set _runtime,_SMP_prvpage+16 /* 8 bytes struct timeval */
.set _cpu_lockid,_SMP_prvpage+24
.set _common_tss,_SMP_prvpage+28 /* 104 bytes long, next = 132 */
+ .set _other_cpus,_SMP_prvpage+132 /* bitmap of available CPUs,
+ excluding ourself */
/* Fetch the .set's for the local apic */
#include "i386/i386/mp_apicdefs.s"
diff --git a/sys/i386/i386/locore.s b/sys/i386/i386/locore.s
index 44ddcbb..1df2ce0 100644
--- a/sys/i386/i386/locore.s
+++ b/sys/i386/i386/locore.s
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
- * $Id: locore.s,v 1.88 1997/05/29 05:11:09 peter Exp $
+ * $Id: locore.s,v 1.1 1997/06/27 18:33:41 smp Exp smp $
*
* originally from: locore.s, by William F. Jolitz
*
@@ -102,7 +102,7 @@
.set _SMP_ioapic,_SMP_prvstart + (16 * PAGE_SIZE)
.globl _cpuid,_curproc,_curpcb,_npxproc,_runtime,_cpu_lockid
- .globl _common_tss
+ .globl _common_tss,_other_cpus
.set _cpuid,_SMP_prvpage+0
.set _curproc,_SMP_prvpage+4
.set _curpcb,_SMP_prvpage+8
@@ -110,6 +110,8 @@
.set _runtime,_SMP_prvpage+16 /* 8 bytes struct timeval */
.set _cpu_lockid,_SMP_prvpage+24
.set _common_tss,_SMP_prvpage+28 /* 104 bytes long, next = 132 */
+ .set _other_cpus,_SMP_prvpage+132 /* bitmap of available CPUs,
+ excluding ourself */
/* Fetch the .set's for the local apic */
#include "i386/i386/mp_apicdefs.s"
OpenPOWER on IntegriCloud