kernel - Fix some rare pmap races in i386 and x86_64 (followup)
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 22 Feb 2010 17:51:08 +0000 (09:51 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 22 Feb 2010 17:51:08 +0000 (09:51 -0800)
* Fix build issue with vkernels

Reported-by: corecode
sys/platform/vkernel/include/pmap.h

index 42240c8..40e3487 100644 (file)
@@ -134,6 +134,8 @@ struct pmap {
        int                     pm_generation;  /* detect pvlist deletions */
 };
 
+#define CPUMASK_LOCK            (1 << SMP_MAXCPU)
+
 #define pmap_resident_count(pmap) (pmap)->pm_stats.resident_count
 
 typedef struct pmap    *pmap_t;