Date: Thu, 3 Dec 2009 19:37:52 +0000 (UTC) From: Fabien Thomas <fabient@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r200078 - stable/7/sys/amd64/include Message-ID: <200912031937.nB3Jbq4O023831@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: fabient Date: Thu Dec 3 19:37:52 2009 New Revision: 200078 URL: http://svn.freebsd.org/changeset/base/200078 Log: MFC 179886: Complete the merge after hwpmc backport. Make preparations for increasing the size of the kernel virtual address space on the amd64 architecture. The amd64 architecture requires kernel code and global variables to reside in the highest 2GB of the 64-bit virtual address space. Thus, KERNBASE cannot change. However, KERNBASE is sometimes used as the start of the kernel virtual address space. Henceforth, VM_MIN_KERNEL_ADDRESS should be used instead. Since KERNBASE and VM_MIN_KERNEL_ADDRESS are still the same address, there should be no visible effect from this change (yet). Modified: stable/7/sys/amd64/include/pmc_mdep.h Modified: stable/7/sys/amd64/include/pmc_mdep.h ============================================================================== --- stable/7/sys/amd64/include/pmc_mdep.h Thu Dec 3 19:27:12 2009 (r200077) +++ stable/7/sys/amd64/include/pmc_mdep.h Thu Dec 3 19:37:52 2009 (r200078) @@ -104,8 +104,8 @@ 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) >= KERNBASE && \ +#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_USERSPACE(va) ((va) <= VM_MAXUSER_ADDRESS)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912031937.nB3Jbq4O023831>