diff options
author | obrien <obrien@FreeBSD.org> | 2001-08-15 04:02:41 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-08-15 04:02:41 +0000 |
commit | 09d3a96a2f67d9cba07a8d10260316099230497e (patch) | |
tree | 4ea3a976eed09e40b20bcda6654e29f82f736516 /sys/alpha/include | |
parent | b72cf5b4c8cbd52f2c66d012dce11036b851c7e7 (diff) | |
download | FreeBSD-src-09d3a96a2f67d9cba07a8d10260316099230497e.zip FreeBSD-src-09d3a96a2f67d9cba07a8d10260316099230497e.tar.gz |
Style changes to commonize the various platforms.
Diffstat (limited to 'sys/alpha/include')
-rw-r--r-- | sys/alpha/include/globals.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/alpha/include/globals.h b/sys/alpha/include/globals.h index 10de1b7..496235a 100644 --- a/sys/alpha/include/globals.h +++ b/sys/alpha/include/globals.h @@ -35,18 +35,18 @@ register struct globaldata *globalp __asm__("$8"); #if 1 -#define GLOBALP globalp +#define GLOBALP globalp #else -#define GLOBALP ((struct globaldata *) alpha_pal_rdval()) +#define GLOBALP ((struct globaldata *) alpha_pal_rdval()) #endif -#define PCPU_GET(name) (GLOBALP->gd_##name) -#define PCPU_PTR(name) (&GLOBALP->gd_##name) -#define PCPU_SET(name,value) (GLOBALP->gd_##name = (value)) +#define PCPU_GET(member) (GLOBALP->gd_ ## member) +#define PCPU_PTR(member) (&GLOBALP->gd_ ## member) +#define PCPU_SET(member,value) (GLOBALP->gd_ ## member = (value)) -#define CURPROC PCPU_GET(curproc) -#define CURTHD PCPU_GET(curproc) /* temporary */ -#define curproc PCPU_GET(curproc) +#define CURPROC PCPU_GET(curproc) +#define CURTHD PCPU_GET(curproc) /* temporary */ +#define curproc PCPU_GET(curproc) #endif /* _KERNEL */ |