diff options
author | kib <kib@FreeBSD.org> | 2015-07-02 14:37:21 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2015-07-02 14:37:21 +0000 |
commit | 77205a0535aed99b4194879b73077c1a1a4bf4f6 (patch) | |
tree | a1fbffaad7b43ca5ec177ee3f3d30ff713e09b9b /sys/amd64/include/pmc_mdep.h | |
parent | 6fa1b93946b24835a4849b0342944e3a8b1b3dd2 (diff) | |
download | FreeBSD-src-77205a0535aed99b4194879b73077c1a1a4bf4f6.zip FreeBSD-src-77205a0535aed99b4194879b73077c1a1a4bf4f6.tar.gz |
Use single instance of the identical INKERNEL() and PMC_IN_KERNEL()
macros on amd64 and i386. Move the definition to machine/param.h.
kgdb defines INKERNEL() too, the conflict is resolved by renaming kgdb
version to PINKERNEL().
On i386, correct the lowest kernel address. After the shared page was
introduced, USRSTACK no longer points to the last user address + 1 [*]
Submitted by: Oliver Pinter [*]
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Diffstat (limited to 'sys/amd64/include/pmc_mdep.h')
-rw-r--r-- | sys/amd64/include/pmc_mdep.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/amd64/include/pmc_mdep.h b/sys/amd64/include/pmc_mdep.h index 73c93fe..22249c1 100644 --- a/sys/amd64/include/pmc_mdep.h +++ b/sys/amd64/include/pmc_mdep.h @@ -113,9 +113,7 @@ union pmc_md_pmc { #define PMC_IN_KERNEL_STACK(S,START,END) \ ((S) >= (START) && (S) < (END)) -#define PMC_IN_KERNEL(va) (((va) >= DMAP_MIN_ADDRESS && \ - (va) < DMAP_MAX_ADDRESS) || ((va) >= VM_MIN_KERNEL_ADDRESS && \ - (va) < VM_MAX_KERNEL_ADDRESS)) +#define PMC_IN_KERNEL(va) INKERNEL(va) #define PMC_IN_USERSPACE(va) ((va) <= VM_MAXUSER_ADDRESS) |