Use single instance of the identical INKERNEL() and PMC_IN_KERNEL()
authorkib <kib@FreeBSD.org>
Thu, 2 Jul 2015 14:37:21 +0000 (14:37 +0000)
committerkib <kib@FreeBSD.org>
Thu, 2 Jul 2015 14:37:21 +0000 (14:37 +0000)
commit77205a0535aed99b4194879b73077c1a1a4bf4f6
treea1fbffaad7b43ca5ec177ee3f3d30ff713e09b9b
parent6fa1b93946b24835a4849b0342944e3a8b1b3dd2
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
gnu/usr.bin/gdb/kgdb/trgt.c
sys/amd64/include/param.h
sys/amd64/include/pmc_mdep.h
sys/amd64/include/stack.h
sys/cddl/dev/dtrace/i386/dtrace_isa.c
sys/i386/include/param.h
sys/i386/include/pmc_mdep.h
sys/i386/include/stack.h