summaryrefslogtreecommitdiffstats
path: root/sys/i386/xen/pmap.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2012-05-30 04:16:54 +0000
committeralc <alc@FreeBSD.org>2012-05-30 04:16:54 +0000
commit8be2ae281d923783fe9d27622c9a3094615a5dd4 (patch)
treef7e3c0b96b11ee7553eaa3c2c2a5a92ed69987b5 /sys/i386/xen/pmap.c
parentbf2eae7971ca919cb4d25d7eacc99c64f109a22f (diff)
downloadFreeBSD-src-8be2ae281d923783fe9d27622c9a3094615a5dd4.zip
FreeBSD-src-8be2ae281d923783fe9d27622c9a3094615a5dd4.tar.gz
Eliminate some purely stylistic differences among the amd64, i386 native,
and i386 xen PV entry allocators.
Diffstat (limited to 'sys/i386/xen/pmap.c')
-rw-r--r--sys/i386/xen/pmap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/xen/pmap.c b/sys/i386/xen/pmap.c
index 8ff2a13..5f3985ab 100644
--- a/sys/i386/xen/pmap.c
+++ b/sys/i386/xen/pmap.c
@@ -278,7 +278,7 @@ SYSCTL_INT(_debug, OID_AUTO, PMAP1unchanged, CTLFLAG_RD,
static struct mtx PMAP2mutex;
static void free_pv_entry(pmap_t pmap, pv_entry_t pv);
-static pv_entry_t get_pv_entry(pmap_t locked_pmap, int try);
+static pv_entry_t get_pv_entry(pmap_t pmap, boolean_t try);
static void pmap_pvh_free(struct md_page *pvh, pmap_t pmap, vm_offset_t va);
static pv_entry_t pmap_pvh_remove(struct md_page *pvh, pmap_t pmap,
vm_offset_t va);
@@ -1914,6 +1914,7 @@ pmap_growkernel(vm_offset_t addr)
CTASSERT(sizeof(struct pv_chunk) == PAGE_SIZE);
CTASSERT(_NPCM == 11);
+CTASSERT(_NPCPV == 336);
static __inline struct pv_chunk *
pv_to_chunk(pv_entry_t pv)
@@ -1927,7 +1928,7 @@ pv_to_chunk(pv_entry_t pv)
#define PC_FREE0_9 0xfffffffful /* Free values for index 0 through 9 */
#define PC_FREE10 0x0000fffful /* Free values for index 10 */
-static uint32_t pc_freemask[11] = {
+static uint32_t pc_freemask[_NPCM] = {
PC_FREE0_9, PC_FREE0_9, PC_FREE0_9,
PC_FREE0_9, PC_FREE0_9, PC_FREE0_9,
PC_FREE0_9, PC_FREE0_9, PC_FREE0_9,
@@ -2087,7 +2088,6 @@ out:
return (m_pc);
}
-
/*
* free the pv_entry back to the free list
*/
@@ -2132,7 +2132,7 @@ free_pv_entry(pmap_t pmap, pv_entry_t pv)
* when needed.
*/
static pv_entry_t
-get_pv_entry(pmap_t pmap, int try)
+get_pv_entry(pmap_t pmap, boolean_t try)
{
static const struct timeval printinterval = { 60, 0 };
static struct timeval lastprint;
OpenPOWER on IntegriCloud