diff options
author | kib <kib@FreeBSD.org> | 2015-08-05 07:21:44 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2015-08-05 07:21:44 +0000 |
commit | 9428730d60c2668836c55e3ba688233695b2ddad (patch) | |
tree | 4c5885e719c8e45996b51e5a65e18711a1ded8f8 /sys/amd64/include/param.h | |
parent | 861d78f2a3cbb714d3930a5d2e820c252bfbaf1d (diff) | |
download | FreeBSD-src-9428730d60c2668836c55e3ba688233695b2ddad.zip FreeBSD-src-9428730d60c2668836c55e3ba688233695b2ddad.tar.gz |
MFC r285041:
Use single instance of the identical INKERNEL() and PMC_IN_KERNEL()
macros on amd64 and i386. On i386, correct the lowest kernel address.
Diffstat (limited to 'sys/amd64/include/param.h')
-rw-r--r-- | sys/amd64/include/param.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/amd64/include/param.h b/sys/amd64/include/param.h index 3d4722b..0e70d2a 100644 --- a/sys/amd64/include/param.h +++ b/sys/amd64/include/param.h @@ -143,4 +143,7 @@ #define pgtok(x) ((unsigned long)(x) * (PAGE_SIZE / 1024)) +#define INKERNEL(va) (((va) >= DMAP_MIN_ADDRESS && (va) < DMAP_MAX_ADDRESS) \ + || ((va) >= VM_MIN_KERNEL_ADDRESS && (va) < VM_MAX_KERNEL_ADDRESS)) + #endif /* !_AMD64_INCLUDE_PARAM_H_ */ |