Changeset View
Changeset View
Standalone View
Standalone View
sys/powerpc/pseries/platform_chrp.c
Show First 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | if (OF_finddevice("/memory") != -1 || OF_finddevice("/memory@0") != -1) | ||||
return (BUS_PROBE_GENERIC); | return (BUS_PROBE_GENERIC); | ||||
return (ENXIO); | return (ENXIO); | ||||
} | } | ||||
static int | static int | ||||
chrp_attach(platform_t plat) | chrp_attach(platform_t plat) | ||||
{ | { | ||||
int quiesce; | |||||
#ifdef __powerpc64__ | #ifdef __powerpc64__ | ||||
int i; | int i; | ||||
/* XXX: check for /rtas/ibm,hypertas-functions? */ | /* XXX: check for /rtas/ibm,hypertas-functions? */ | ||||
if (!(mfmsr() & PSL_HV)) { | if (!(mfmsr() & PSL_HV)) { | ||||
struct mem_region *phys, *avail; | struct mem_region *phys, *avail; | ||||
int nphys, navail; | int nphys, navail; | ||||
mem_regions(&phys, &nphys, &avail, &navail); | mem_regions(&phys, &nphys, &avail, &navail); | ||||
Show All 19 Lines | if (!(mfmsr() & PSL_HV)) { | ||||
/* Set up hypervisor CPU stuff */ | /* Set up hypervisor CPU stuff */ | ||||
chrp_smp_ap_init(plat); | chrp_smp_ap_init(plat); | ||||
} | } | ||||
#endif | #endif | ||||
chrp_cpuref_init(); | chrp_cpuref_init(); | ||||
/* Some systems (e.g. QEMU) need Open Firmware to stand down */ | /* Some systems (e.g. QEMU) need Open Firmware to stand down */ | ||||
quiesce = 1; | |||||
TUNABLE_INT_FETCH("hw.ofw.quiesce", &quiesce); | |||||
jhibbits: I would name this "debug.quiesce_ofw" or similar, to enforce the fact that this is intended for… | |||||
if (quiesce) | |||||
ofw_quiesce(); | ofw_quiesce(); | ||||
return (0); | return (0); | ||||
} | } | ||||
static int | static int | ||||
parse_drconf_memory(struct mem_region *ofmem, int *msz, | parse_drconf_memory(struct mem_region *ofmem, int *msz, | ||||
struct mem_region *ofavail, int *asz) | struct mem_region *ofavail, int *asz) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 408 Lines • Show Last 20 Lines |
I would name this "debug.quiesce_ofw" or similar, to enforce the fact that this is intended for debugging only.