svn commit: r200078 - stable/7/sys/amd64/include

Fabien Thomas fabient at FreeBSD.org
Thu Dec 3 19:37:53 UTC 2009


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)


More information about the svn-src-stable mailing list