diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2000-08-15 19:50:43 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2000-08-15 19:50:43 +0000 |
commit | 516f9b2f6d83d9ca21bebfbf000a9a28a90c7e65 (patch) | |
tree | 60ce6eddebf6bc5821d72ba333b04696eb48eb83 /sys | |
parent | d709b12d01c0633ee2ed60477f85ce38f89b04ec (diff) |
compress MD_CACHE_CTL in one line
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/hppa/include/cpu.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/hppa/include/cpu.h b/sys/arch/hppa/include/cpu.h index 3f8f48484d8..fe43ccc35fd 100644 --- a/sys/arch/hppa/include/cpu.h +++ b/sys/arch/hppa/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.18 2000/07/02 04:14:45 mickey Exp $ */ +/* $OpenBSD: cpu.h,v 1.19 2000/08/15 19:50:42 mickey Exp $ */ /* * Copyright (c) 2000 Michael Shalayeff @@ -122,9 +122,8 @@ extern const char *cpu_typename; #ifdef _KERNEL #define MD_CACHE_FLUSH 0 #define MD_CACHE_PURGE 1 -#define MD_CACHE_CTL(CACHE_ADDR,CACHE_SIZE,CACHE_FLUSHTYPE) \ - (((CACHE_FLUSHTYPE)? pdcache : fdcache) \ - (HPPA_SID_KERNEL,(vaddr_t)CACHE_ADDR,CACHE_SIZE)) \ +#define MD_CACHE_CTL(a,s,t) \ + (((t)? pdcache : fdcache) (HPPA_SID_KERNEL,(vaddr_t)(a),(s))) #define DELAY(x) delay(x) |