summaryrefslogtreecommitdiffstats
path: root/sys/alpha/include
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2001-01-11 14:46:26 +0000
committerjake <jake@FreeBSD.org>2001-01-11 14:46:26 +0000
commit4f7710fc47ddb6e51ce7317ffce5c6867264462e (patch)
tree6b7f5555a3b41258f59152128a62f6dbf2bd6183 /sys/alpha/include
parentd1aa54787886163037633da6a38c68c51eb73c7e (diff)
downloadFreeBSD-src-4f7710fc47ddb6e51ce7317ffce5c6867264462e.zip
FreeBSD-src-4f7710fc47ddb6e51ce7317ffce5c6867264462e.tar.gz
- Remove compatibility macros for accessing per-cpu variables.
__FreeBSD_version 500015 can be used to detect their disappearance. - Move the symbols for SMP_prvspace and lapic from globals.s to locore.s. - Remove globals.s with extreme prejudice.
Diffstat (limited to 'sys/alpha/include')
-rw-r--r--sys/alpha/include/globals.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/alpha/include/globals.h b/sys/alpha/include/globals.h
index 85fcad3..10de1b7 100644
--- a/sys/alpha/include/globals.h
+++ b/sys/alpha/include/globals.h
@@ -44,22 +44,9 @@ register struct globaldata *globalp __asm__("$8");
#define PCPU_PTR(name) (&GLOBALP->gd_##name)
#define PCPU_SET(name,value) (GLOBALP->gd_##name = (value))
-/*
- * The following set of macros works for UP kernel as well, but for maximum
- * performance we allow the global variables to be accessed directly. On the
- * other hand, kernel modules should always use these macros to maintain
- * portability between UP and SMP kernels.
- */
#define CURPROC PCPU_GET(curproc)
#define CURTHD PCPU_GET(curproc) /* temporary */
#define curproc PCPU_GET(curproc)
-#define idleproc PCPU_GET(idleproc)
-#define curpcb PCPU_GET(curpcb)
-#define fpcurproc PCPU_GET(fpcurproc)
-#define switchtime PCPU_GET(switchtime)
-#define switchticks PCPU_GET(switchticks)
-#define cpuid PCPU_GET(cpuno)
-#define witness_spin_check PCPU_GET(witness_spin_check)
#endif /* _KERNEL */
OpenPOWER on IntegriCloud