diff --git a/sys/arm/arm/pmap.c b/sys/arm/arm/pmap.c index dcd53c86b955..3e92f4aad207 100644 --- a/sys/arm/arm/pmap.c +++ b/sys/arm/arm/pmap.c @@ -431,10 +431,10 @@ pmap_init_l1(struct l1_ttable *l1, pd_entry_t *l1pt) l1->l1_kva = l1pt; l1->l1_domain_use_count = 0; - l1->l1_domain_first = 0; + l1->l1_domain_first = 1; for (i = 0; i < PMAP_DOMAINS; i++) - l1->l1_domain_free[i] = i + 1; + l1->l1_domain_free[i] = i + 2; /* * Copy the kernel's L1 entries to each new L1. diff --git a/sys/arm/include/pmap.h b/sys/arm/include/pmap.h index bf7de7cc11d3..b95c1b4f3a8c 100644 --- a/sys/arm/include/pmap.h +++ b/sys/arm/include/pmap.h @@ -237,8 +237,8 @@ int pmap_fault_fixup(pmap_t, vm_offset_t, vm_prot_t, int); /* * Definitions for MMU domains */ -#define PMAP_DOMAINS 15 /* 15 'user' domains (0-14) */ -#define PMAP_DOMAIN_KERNEL 15 /* The kernel uses domain #15 */ +#define PMAP_DOMAINS 15 /* 15 'user' domains (1-15) */ +#define PMAP_DOMAIN_KERNEL 0 /* The kernel uses domain #0 */ /* * The new pmap ensures that page-tables are always mapping Write-Thru.