Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/sommerfeld_i386mp_1]: src/sys/arch/i386/include Add some minimal support...



details:   https://anonhg.NetBSD.org/src/rev/552b8eba71fd
branches:  sommerfeld_i386mp_1
changeset: 482309:552b8eba71fd
user:      sommerfeld <sommerfeld%NetBSD.org@localhost>
date:      Sat Nov 18 22:50:31 2000 +0000

description:
Add some minimal support for iterating over cpus

diffstat:

 sys/arch/i386/include/cpu.h |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r a9ec3da8d227 -r 552b8eba71fd sys/arch/i386/include/cpu.h
--- a/sys/arch/i386/include/cpu.h       Sat Nov 18 22:48:10 2000 +0000
+++ b/sys/arch/i386/include/cpu.h       Sat Nov 18 22:50:31 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.59.2.13 2000/09/23 17:30:07 sommerfeld Exp $ */
+/*     $NetBSD: cpu.h,v 1.59.2.14 2000/11/18 22:50:31 sommerfeld Exp $ */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -68,7 +68,8 @@
 struct cpu_info {
        struct device ci_dev;           /* pointer to our device */
        struct schedstate_percpu ci_schedstate; /* scheduler state */
-
+       struct cpu_info *ci_next;       /* next cpu */
+       
        /*
         * Public members.
         */
@@ -148,6 +149,9 @@
 #endif
 #define aston(ci)      ((ci)->ci_astpending = 1, i386_ipisend(ci))
 extern struct cpu_info *cpu_info[I386_MAXPROCS];
+extern  struct cpu_info *i386_boot_cpu;
+#define CPU_INFO_ITERATOR int
+#define CPU_INFO_FOREACH(cii, ci) cii=0,ci = i386_boot_cpu; ci != NULL; ci = ci->ci_next
 
 void cpu_boot_secondary_processors __P((void));
 void cpu_init_idle_pcbs __P((void));



Home | Main Index | Thread Index | Old Index