if (rtas != (phandle) -1) { unsigned long x; x = prom_getproplen(rtas, "ibm,hypertas-functions"); 
if (!PHANDLE_VALID(rtas)) { int x = prom_getproplen(rtas, "ibm,hypertas-functions"); 
static int __init prom_find_machine_type(void){	unsigned long offset = reloc_offset();	struct prom_t *_prom = PTRRELOC(&prom);	char compat[256];	int len, i = 0;	phandle rtas;	len = prom_getprop(_prom->root, "compatible",			   compat, sizeof(compat)-1);	if (len > 0) {		compat[len] = 0;		while (i < len) {			char *p = &compat[i];			int sl = strlen(p);			if (sl == 0)				break;			if (strstr(p, RELOC("Power Macintosh")) ||			    strstr(p, RELOC("MacRISC4")))				return PLATFORM_POWERMAC;			if (strstr(p, RELOC("Momentum,Maple")))				return PLATFORM_MAPLE;			i += sl + 1;		}	}	/* Default to pSeries. We need to know if we are running LPAR */	rtas = call_prom("finddevice", 1, 1, ADDR("/rtas"));	if (rtas != (phandle) -1) {		unsigned long x;		x = prom_getproplen(rtas, "ibm,hypertas-functions");		if (x != PROM_ERROR) {			prom_printf("Hypertas detected, assuming LPAR !\n");			return PLATFORM_PSERIES_LPAR;		}	}	return PLATFORM_PSERIES;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/1e86d1c648508fd50e6c9960576b87906a7906ad/prom_init.c/clean/arch/ppc64/kernel/prom_init.c