ppc_md.irq_canonicalize = chrp_irq_canonicalize; 
chrp_init(unsigned long r3, unsigned long r4, unsigned long r5,	  unsigned long r6, unsigned long r7){	struct device_node *root = find_path_device ("/");	char *machine = NULL;#ifdef CONFIG_BLK_DEV_INITRD	/* take care of initrd if we have one */	if ( r6 )	{		initrd_start = r6 + KERNELBASE;		initrd_end = r6 + r7 + KERNELBASE;	}#endif /* CONFIG_BLK_DEV_INITRD */	ISA_DMA_THRESHOLD = ~0L;	DMA_MODE_READ = 0x44;	DMA_MODE_WRITE = 0x48;	isa_io_base = CHRP_ISA_IO_BASE;		/* default value */	if (root)		machine = get_property(root, "model", NULL);	if (machine && strncmp(machine, "Pegasos", 7) == 0) {		_chrp_type = _CHRP_Pegasos;	} else if (machine && strncmp(machine, "IBM", 3) == 0) {		_chrp_type = _CHRP_IBM;	} else if (machine && strncmp(machine, "MOT", 3) == 0) {		_chrp_type = _CHRP_Motorola;	} else {		/* Let's assume it is an IBM chrp if all else fails */		_chrp_type = _CHRP_IBM;	}	ppc_md.setup_arch     = chrp_setup_arch;	ppc_md.show_percpuinfo = of_show_percpuinfo;	ppc_md.show_cpuinfo   = chrp_show_cpuinfo;	ppc_md.irq_canonicalize = chrp_irq_canonicalize;	ppc_md.init_IRQ       = chrp_init_IRQ;	if (_chrp_type == _CHRP_Pegasos)		ppc_md.get_irq        = i8259_irq;	else		ppc_md.get_irq        = openpic_get_irq;	ppc_md.init           = chrp_init2;	ppc_md.phys_mem_access_prot = pci_phys_mem_access_prot;	ppc_md.restart        = chrp_restart;	ppc_md.power_off      = chrp_power_off;	ppc_md.halt           = chrp_halt;	ppc_md.time_init      = chrp_time_init;	ppc_md.set_rtc_time   = chrp_set_rtc_time;	ppc_md.get_rtc_time   = chrp_get_rtc_time;	ppc_md.calibrate_decr = chrp_calibrate_decr;	ppc_md.find_end_of_memory = pmac_find_end_of_memory;	if (rtas_data) {		struct device_node *rtas;		unsigned int *p;		rtas = find_devices("rtas");		if (rtas != NULL) {			if (get_property(rtas, "display-character", NULL)) {				ppc_md.progress = rtas_display_progress;				p = (unsigned int *) get_property				       (rtas, "ibm,display-line-length", NULL);				if (p)					max_width = *p;			} else if (get_property(rtas, "set-indicator", NULL))				ppc_md.progress = rtas_indicator_progress;		}	}#ifdef CONFIG_BOOTX_TEXT	if (ppc_md.progress == NULL && boot_text_mapped)		ppc_md.progress = btext_progress;#endif#ifdef CONFIG_SMP	ppc_md.smp_ops = &chrp_smp_ops;#endif /* CONFIG_SMP */	/*	 * Print the banner, then scroll down so boot progress	 * can be printed.  -- Cort	 */	if (ppc_md.progress) ppc_md.progress("Linux/PPC "UTS_RELEASE"\n", 0x0);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/35d81a4bfe28a6ea81c9f67c9ce40543124ded0b/chrp_setup.c/buggy/arch/ppc/platforms/chrp_setup.c