From 4f7710fc47ddb6e51ce7317ffce5c6867264462e Mon Sep 17 00:00:00 2001 From: jake Date: Thu, 11 Jan 2001 14:46:26 +0000 Subject: - 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. --- sys/alpha/include/globals.h | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'sys/alpha/include') 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 */ -- cgit v1.1