summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>1999-08-10 21:08:05 +0000
committerthorpej <thorpej@NetBSD.org>1999-08-10 21:08:05 +0000
commit28fb7c1eb8a6e73cb44a0ca57fcc1ada71a9f5ba (patch)
tree8d45e297acac38cd4027be029f146f737f2d2923 /sys
parentc8b0d0494959983c1944e5bff2fe4d116d7ce246 (diff)
Define cpu_number() as discussed on tech-smp.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/alpha/include/cpu.h5
-rw-r--r--sys/arch/amiga/include/cpu.h3
-rw-r--r--sys/arch/arm32/include/cpu.h3
-rw-r--r--sys/arch/atari/include/cpu.h3
-rw-r--r--sys/arch/bebox/include/cpu.h3
-rw-r--r--sys/arch/hp300/include/cpu.h3
-rw-r--r--sys/arch/i386/include/cpu.h3
-rw-r--r--sys/arch/mac68k/include/cpu.h3
-rw-r--r--sys/arch/macppc/include/cpu.h3
-rw-r--r--sys/arch/mips/include/cpu.h3
-rw-r--r--sys/arch/mvme68k/include/cpu.h3
-rw-r--r--sys/arch/next68k/include/cpu.h3
-rw-r--r--sys/arch/ofppc/include/cpu.h3
-rw-r--r--sys/arch/pc532/include/cpu.h3
-rw-r--r--sys/arch/sparc/include/cpu.h3
-rw-r--r--sys/arch/sparc64/include/cpu.h3
-rw-r--r--sys/arch/sun3/include/cpu.h3
-rw-r--r--sys/arch/vax/include/cpu.h3
-rw-r--r--sys/arch/x68k/include/cpu.h3
19 files changed, 39 insertions, 20 deletions
diff --git a/sys/arch/alpha/include/cpu.h b/sys/arch/alpha/include/cpu.h
index 2a6b31d0b14..fb36b15982c 100644
--- a/sys/arch/alpha/include/cpu.h
+++ b/sys/arch/alpha/include/cpu.h
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.30 1998/11/19 01:51:40 ross Exp $ */
+/* $NetBSD: cpu.h,v 1.31 1999/08/10 21:08:05 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -55,7 +55,8 @@
* definitions of cpu-dependent requirements
* referenced in generic code
*/
-#define cpu_wait(p) /* nothing */
+#define cpu_wait(p) /* nothing */
+#define cpu_number() alpha_pal_whami()
/*
* Arguments to hardclock and gatherstats encapsulate the previous
diff --git a/sys/arch/amiga/include/cpu.h b/sys/arch/amiga/include/cpu.h
index 290358e1c57..7e2d0da1538 100644
--- a/sys/arch/amiga/include/cpu.h
+++ b/sys/arch/amiga/include/cpu.h
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.46 1999/02/26 22:37:57 is Exp $ */
+/* $NetBSD: cpu.h,v 1.47 1999/08/10 21:08:06 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -61,6 +61,7 @@
#define cpu_swapin(p) /* nothing */
#define cpu_wait(p) /* nothing */
#define cpu_swapout(p) /* nothing */
+#define cpu_number() 0
/*
* Arguments to hardclock and gatherstats encapsulate the previous
diff --git a/sys/arch/arm32/include/cpu.h b/sys/arch/arm32/include/cpu.h
index f9b31f9fbb7..8ca05d1cee1 100644
--- a/sys/arch/arm32/include/cpu.h
+++ b/sys/arch/arm32/include/cpu.h
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.18 1998/11/11 06:41:24 thorpej Exp $ */
+/* $NetBSD: cpu.h,v 1.19 1999/08/10 21:08:06 thorpej Exp $ */
/*
* Copyright (c) 1994-1996 Mark Brinicombe.
@@ -224,6 +224,7 @@
*/
#define cpu_wait(p) /* nothing */
+#define cpu_number() 0
/*
* Notify the current process (p) that it has a signal pending,
diff --git a/sys/arch/atari/include/cpu.h b/sys/arch/atari/include/cpu.h
index c63dce113c4..b0cc657a0b3 100644
--- a/sys/arch/atari/include/cpu.h
+++ b/sys/arch/atari/include/cpu.h
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.31 1999/02/26 22:37:57 is Exp $ */
+/* $NetBSD: cpu.h,v 1.32 1999/08/10 21:08:06 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -62,6 +62,7 @@
#define cpu_swapin(p) /* nothing */
#define cpu_wait(p) /* nothing */
#define cpu_swapout(p) /* nothing */
+#define cpu_number() 0
/*
* Arguments to hardclock and gatherstats encapsulate the previous
diff --git a/sys/arch/bebox/include/cpu.h b/sys/arch/bebox/include/cpu.h
index b87d9a63b90..26717691a58 100644
--- a/sys/arch/bebox/include/cpu.h
+++ b/sys/arch/bebox/include/cpu.h
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.5 1999/06/24 01:28:02 sakamoto Exp $ */
+/* $NetBSD: cpu.h,v 1.6 1999/08/10 21:08:06 thorpej Exp $ */
/*
* Copyright (C) 1995-1997 Wolfgang Solfrank.
@@ -44,6 +44,7 @@
#define cpu_swapout(p)
#define cpu_wait(p)
+#define cpu_number() 0
extern void delay __P((unsigned int));
#define DELAY(n) delay(n)
diff --git a/sys/arch/hp300/include/cpu.h b/sys/arch/hp300/include/cpu.h
index ae95c01edc1..52b0f70012f 100644
--- a/sys/arch/hp300/include/cpu.h
+++ b/sys/arch/hp300/include/cpu.h
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.32 1999/02/26 22:37:57 is Exp $ */
+/* $NetBSD: cpu.h,v 1.33 1999/08/10 21:08:07 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -66,6 +66,7 @@
#define cpu_swapin(p) /* nothing */
#define cpu_wait(p) /* nothing */
#define cpu_swapout(p) /* nothing */
+#define cpu_number() 0
/*
* Arguments to hardclock and gatherstats encapsulate the previous
diff --git a/sys/arch/i386/include/cpu.h b/sys/arch/i386/include/cpu.h
index 06216b9eaf7..ae7192a399a 100644
--- a/sys/arch/i386/include/cpu.h
+++ b/sys/arch/i386/include/cpu.h
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.54 1999/07/20 22:25:19 thorpej Exp $ */
+/* $NetBSD: cpu.h,v 1.55 1999/08/10 21:08:07 thorpej Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -53,6 +53,7 @@
* referenced in generic code
*/
#define cpu_swapin(p) /* nothing */
+#define cpu_number() 0
/*
* Arguments to hardclock, softclock and statclock
diff --git a/sys/arch/mac68k/include/cpu.h b/sys/arch/mac68k/include/cpu.h
index 9f0f12b4958..953d9b82080 100644
--- a/sys/arch/mac68k/include/cpu.h
+++ b/sys/arch/mac68k/include/cpu.h
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.62 1999/06/28 01:56:57 briggs Exp $ */
+/* $NetBSD: cpu.h,v 1.63 1999/08/10 21:08:07 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -86,6 +86,7 @@
#define cpu_swapin(p) /* nothing */
#define cpu_wait(p) /* nothing */
#define cpu_swapout(p) /* nothing */
+#define cpu_number() 0
/*
* Arguments to hardclock and gatherstats encapsulate the previous
diff --git a/sys/arch/macppc/include/cpu.h b/sys/arch/macppc/include/cpu.h
index 045f8a506e2..5cc5608a416 100644
--- a/sys/arch/macppc/include/cpu.h
+++ b/sys/arch/macppc/include/cpu.h
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.8 1999/05/06 04:37:44 tsubai Exp $ */
+/* $NetBSD: cpu.h,v 1.9 1999/08/10 21:08:07 thorpej Exp $ */
/*
* Copyright (C) 1995-1997 Wolfgang Solfrank.
@@ -44,6 +44,7 @@
#define cpu_swapout(p)
#define cpu_wait(p)
+#define cpu_number() 0
extern void delay __P((unsigned));
#define DELAY(n) delay(n)
diff --git a/sys/arch/mips/include/cpu.h b/sys/arch/mips/include/cpu.h
index f9b3990cb99..3b7d88a6225 100644
--- a/sys/arch/mips/include/cpu.h
+++ b/sys/arch/mips/include/cpu.h
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.31 1999/05/20 08:21:48 lukem Exp $ */
+/* $NetBSD: cpu.h,v 1.32 1999/08/10 21:08:08 thorpej Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -70,6 +70,7 @@ extern int cpu_arch;
*/
#define cpu_wait(p) /* nothing */
#define cpu_swapout(p) panic("cpu_swapout: can't get here");
+#define cpu_number() 0
/*
* Arguments to hardclock and gatherstats encapsulate the previous
diff --git a/sys/arch/mvme68k/include/cpu.h b/sys/arch/mvme68k/include/cpu.h
index f54033c3ac6..37b76aa47aa 100644
--- a/sys/arch/mvme68k/include/cpu.h
+++ b/sys/arch/mvme68k/include/cpu.h
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.11 1999/02/26 22:16:35 is Exp $ */
+/* $NetBSD: cpu.h,v 1.12 1999/08/10 21:08:08 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -59,6 +59,7 @@
#define cpu_swapin(p) /* nothing */
#define cpu_wait(p) /* nothing */
#define cpu_swapout(p) /* nothing */
+#define cpu_number() 0
/*
* Arguments to hardclock and gatherstats encapsulate the previous
diff --git a/sys/arch/next68k/include/cpu.h b/sys/arch/next68k/include/cpu.h
index 4a63d33a05a..d88f998e7a8 100644
--- a/sys/arch/next68k/include/cpu.h
+++ b/sys/arch/next68k/include/cpu.h
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.10 1999/03/24 23:15:58 dbj Exp $ */
+/* $NetBSD: cpu.h,v 1.11 1999/08/10 21:08:08 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -69,6 +69,7 @@
#define cpu_swapin(p) /* nothing */
#define cpu_wait(p) /* nothing */
#define cpu_swapout(p) /* nothing */
+#define cpu_number() 0
/*
* Arguments to hardclock and gatherstats encapsulate the previous
diff --git a/sys/arch/ofppc/include/cpu.h b/sys/arch/ofppc/include/cpu.h
index 687f1bc229c..e528935d815 100644
--- a/sys/arch/ofppc/include/cpu.h
+++ b/sys/arch/ofppc/include/cpu.h
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.5 1999/08/05 18:08:12 thorpej Exp $ */
+/* $NetBSD: cpu.h,v 1.6 1999/08/10 21:08:08 thorpej Exp $ */
/*
* Copyright (C) 1995-1997 Wolfgang Solfrank.
@@ -82,6 +82,7 @@ extern struct machvec machine_interface;
#define cpu_swapout(p)
#define cpu_wait(p)
+#define cpu_number() 0
extern void delay __P((unsigned));
#define DELAY(n) delay(n)
diff --git a/sys/arch/pc532/include/cpu.h b/sys/arch/pc532/include/cpu.h
index 85130b5ea69..94592585508 100644
--- a/sys/arch/pc532/include/cpu.h
+++ b/sys/arch/pc532/include/cpu.h
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.28 1998/11/11 06:43:49 thorpej Exp $ */
+/* $NetBSD: cpu.h,v 1.29 1999/08/10 21:08:08 thorpej Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -56,6 +56,7 @@
*/
#define cpu_swapin(p) /* nothing */
#define cpu_wait(p) /* nothing */
+#define cpu_number() 0
/*
* Arguments to hardclock, softclock and gatherstats
diff --git a/sys/arch/sparc/include/cpu.h b/sys/arch/sparc/include/cpu.h
index 282e8a74594..ca2ac394cf5 100644
--- a/sys/arch/sparc/include/cpu.h
+++ b/sys/arch/sparc/include/cpu.h
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.32 1999/01/19 10:02:40 pk Exp $ */
+/* $NetBSD: cpu.h,v 1.33 1999/08/10 21:08:09 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -71,6 +71,7 @@
#define cpu_swapin(p) /* nothing */
#define cpu_swapout(p) /* nothing */
#define cpu_wait(p) /* nothing */
+#define cpu_number() 0 /* XXX */
/*
* Arguments to hardclock, softclock and gatherstats encapsulate the
diff --git a/sys/arch/sparc64/include/cpu.h b/sys/arch/sparc64/include/cpu.h
index 59699a75c2a..3948fae35bb 100644
--- a/sys/arch/sparc64/include/cpu.h
+++ b/sys/arch/sparc64/include/cpu.h
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.11 1999/06/20 00:51:30 eeh Exp $ */
+/* $NetBSD: cpu.h,v 1.12 1999/08/10 21:08:09 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -73,6 +73,7 @@
#define cpu_swapin(p) /* nothing */
#define cpu_swapout(p) /* nothing */
#define cpu_wait(p) /* nothing */
+#define cpu_number() 0
/*
* Arguments to hardclock, softclock and gatherstats encapsulate the
diff --git a/sys/arch/sun3/include/cpu.h b/sys/arch/sun3/include/cpu.h
index 49344a45e20..ff3ce55fc23 100644
--- a/sys/arch/sun3/include/cpu.h
+++ b/sys/arch/sun3/include/cpu.h
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.22 1997/03/20 16:21:10 gwr Exp $ */
+/* $NetBSD: cpu.h,v 1.23 1999/08/10 21:08:09 thorpej Exp $ */
/*
* Copyright (c) 1994 Gordon W. Ross
@@ -66,6 +66,7 @@
* referenced in generic code
*/
#define cpu_wait(p) /* nothing */
+#define cpu_number() 0
/*
* Arguments to hardclock and gatherstats encapsulate the previous
diff --git a/sys/arch/vax/include/cpu.h b/sys/arch/vax/include/cpu.h
index 61e7d9fc57c..320babff3b5 100644
--- a/sys/arch/vax/include/cpu.h
+++ b/sys/arch/vax/include/cpu.h
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.38 1999/08/07 10:36:46 ragge Exp $ */
+/* $NetBSD: cpu.h,v 1.39 1999/08/10 21:08:09 thorpej Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden
@@ -43,6 +43,7 @@
#define enablertclock()
#define cpu_wait(p)
#define cpu_swapout(p)
+#define cpu_number() 0
/*
* All cpu-dependent info is kept in this struct. Pointer to the
diff --git a/sys/arch/x68k/include/cpu.h b/sys/arch/x68k/include/cpu.h
index 1aa60408b00..713ac7805d8 100644
--- a/sys/arch/x68k/include/cpu.h
+++ b/sys/arch/x68k/include/cpu.h
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.18 1999/05/05 13:46:20 minoura Exp $ */
+/* $NetBSD: cpu.h,v 1.19 1999/08/10 21:08:09 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -67,6 +67,7 @@
#define cpu_swapin(p) /* nothing */
#define cpu_wait(p) /* nothing */
#define cpu_swapout(p) /* nothing */
+#define cpu_number() 0
/*
* Arguments to hardclock and gatherstats encapsulate the previous