Changeset View
Changeset View
Standalone View
Standalone View
head/sys/powerpc/aim/mmu_oea64.c
Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | |||||
extern void *slbtrap, *slbtrapend; | extern void *slbtrap, *slbtrapend; | ||||
/* | /* | ||||
* Map of physical memory regions. | * Map of physical memory regions. | ||||
*/ | */ | ||||
static struct mem_region *regions; | static struct mem_region *regions; | ||||
static struct mem_region *pregions; | static struct mem_region *pregions; | ||||
static struct numa_mem_region *numa_pregions; | |||||
static u_int phys_avail_count; | static u_int phys_avail_count; | ||||
static int regions_sz, pregions_sz; | static int regions_sz, pregions_sz, numapregions_sz; | ||||
extern void bs_remap_earlyboot(void); | extern void bs_remap_earlyboot(void); | ||||
/* | /* | ||||
* Lock for the SLB tables. | * Lock for the SLB tables. | ||||
*/ | */ | ||||
struct mtx moea64_slb_mutex; | struct mtx moea64_slb_mutex; | ||||
▲ Show 20 Lines • Show All 884 Lines • ▼ Show 20 Lines | for (i = 0; i < 2; i++) { | ||||
moea64_kenter(mmup, moea64_scratchpage_va[i], 0); | moea64_kenter(mmup, moea64_scratchpage_va[i], 0); | ||||
PMAP_LOCK(kernel_pmap); | PMAP_LOCK(kernel_pmap); | ||||
moea64_scratchpage_pvo[i] = moea64_pvo_find_va( | moea64_scratchpage_pvo[i] = moea64_pvo_find_va( | ||||
kernel_pmap, (vm_offset_t)moea64_scratchpage_va[i]); | kernel_pmap, (vm_offset_t)moea64_scratchpage_va[i]); | ||||
PMAP_UNLOCK(kernel_pmap); | PMAP_UNLOCK(kernel_pmap); | ||||
} | } | ||||
} | } | ||||
numa_mem_regions(&numa_pregions, &numapregions_sz); | |||||
} | } | ||||
static void | static void | ||||
moea64_pmap_init_qpages(void) | moea64_pmap_init_qpages(void) | ||||
{ | { | ||||
struct pcpu *pc; | struct pcpu *pc; | ||||
int i; | int i; | ||||
▲ Show 20 Lines • Show All 1,834 Lines • Show Last 20 Lines |