Changeset View
Changeset View
Standalone View
Standalone View
sys/powerpc/aim/moea64_native.c
Context not available. | |||||
*/ | */ | ||||
__asm __volatile ("ptesync; mtsdr1 %0; isync" | __asm __volatile ("ptesync; mtsdr1 %0; isync" | ||||
:: "r"((uintptr_t)moea64_pteg_table | :: "r"(((uintptr_t)moea64_pteg_table & ~DMAP_BASE_ADDRESS) | ||||
| (uintptr_t)(flsl(moea64_pteg_mask >> 11)))); | | (uintptr_t)(flsl(moea64_pteg_mask >> 11)))); | ||||
tlbia(); | tlbia(); | ||||
} | } | ||||
Context not available. | |||||
*/ | */ | ||||
moea64_pteg_table = (struct lpte *)moea64_bootstrap_alloc(size, size); | moea64_pteg_table = (struct lpte *)moea64_bootstrap_alloc(size, size); | ||||
if (hw_direct_map) | |||||
moea64_pteg_table = | |||||
(struct lpte *)PHYS_TO_DMAP((vm_offset_t)moea64_pteg_table); | |||||
DISABLE_TRANS(msr); | DISABLE_TRANS(msr); | ||||
bzero(__DEVOLATILE(void *, moea64_pteg_table), moea64_pteg_count * | bzero(__DEVOLATILE(void *, moea64_pteg_table), moea64_pteg_count * | ||||
sizeof(struct lpteg)); | sizeof(struct lpteg)); | ||||
Context not available. |