diff --git a/sys/ia64/include/globals.h b/sys/ia64/include/globals.h index 07c44e71da0d..c036d9ec5365 100644 --- a/sys/ia64/include/globals.h +++ b/sys/ia64/include/globals.h @@ -30,6 +30,7 @@ #define _MACHINE_GLOBALS_H_ #ifdef _KERNEL +#include register struct globaldata *globalp __asm__("r13"); @@ -49,6 +50,7 @@ register struct globaldata *globalp __asm__("r13"); * 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)