Changeset View
Changeset View
Standalone View
Standalone View
sys/powerpc/aim/aim_machdep.c
Show First 20 Lines • Show All 185 Lines • ▼ Show 20 Lines | #ifdef __powerpc64__ | ||||
/* | /* | ||||
* If in real mode, relocate to high memory so that the kernel | * If in real mode, relocate to high memory so that the kernel | ||||
* can execute from the direct map. | * can execute from the direct map. | ||||
*/ | */ | ||||
if (!(mfmsr() & PSL_DR) && | if (!(mfmsr() & PSL_DR) && | ||||
(vm_offset_t)&aim_early_init < DMAP_BASE_ADDRESS) | (vm_offset_t)&aim_early_init < DMAP_BASE_ADDRESS) | ||||
__restartkernel(fdt, 0, ofentry, mdp, mdp_cookie, | __restartkernel(fdt, 0, ofentry, mdp, mdp_cookie, | ||||
DMAP_BASE_ADDRESS, mfmsr()); | DMAP_BASE_ADDRESS, mfmsr()); | ||||
if (cpu_features2 & PPC_FEATURE2_ARCH_3_00) | |||||
lpcr |= LPCR_HVICE; | |||||
#endif | #endif | ||||
/* Various very early CPU fix ups */ | /* Various very early CPU fix ups */ | ||||
switch (mfpvr() >> 16) { | switch (mfpvr() >> 16) { | ||||
/* | /* | ||||
* PowerPC 970 CPUs have a misfeature requested by Apple that | * PowerPC 970 CPUs have a misfeature requested by Apple that | ||||
* makes them pretend they have a 32-byte cacheline. Turn this | * makes them pretend they have a 32-byte cacheline. Turn this | ||||
* off before we measure the cacheline size. | * off before we measure the cacheline size. | ||||
▲ Show 20 Lines • Show All 492 Lines • Show Last 20 Lines |