SH_PIO_WRITE_STATUS_WRITE_DEADLOCK_MASK)) { sn2_ptc_deadlock_recovery(ptc0, data0, ptc1, data1); 
(SH_PIO_WRITE_STATUS_WRITE_DEADLOCK_MASK))) { sn2_ptc_deadlock_recovery(nasids, nix, mynasid, ptc0, data0, ptc1, data1); 
sn2_global_tlb_purge(unsigned long start, unsigned long end,		     unsigned long nbits){	int i, shub1, cnode, mynasid, cpu, lcpu = 0, nasid, flushed = 0;	volatile unsigned long *ptc0, *ptc1;	unsigned long flags = 0, data0 = 0, data1 = 0;	struct mm_struct *mm = current->active_mm;	short nasids[MAX_NUMNODES], nix;	nodemask_t nodes_flushed;	nodes_clear(nodes_flushed);	i = 0;	for_each_cpu_mask(cpu, mm->cpu_vm_mask) {		cnode = cpu_to_node(cpu);		node_set(cnode, nodes_flushed);		lcpu = cpu;		i++;	}	preempt_disable();	if (likely(i == 1 && lcpu == smp_processor_id())) {		do {			ia64_ptcl(start, nbits << 2);			start += (1UL << nbits);		} while (start < end);		ia64_srlz_i();		preempt_enable();		return;	}	if (atomic_read(&mm->mm_users) == 1) {		flush_tlb_mm(mm);		preempt_enable();		return;	}	nix = 0;	for_each_node_mask(cnode, nodes_flushed)		nasids[nix++] = cnodeid_to_nasid(cnode);	shub1 = is_shub1();	if (shub1) {		data0 = (1UL << SH1_PTC_0_A_SHFT) |		    	(nbits << SH1_PTC_0_PS_SHFT) |		    	((ia64_get_rr(start) >> 8) << SH1_PTC_0_RID_SHFT) |		    	(1UL << SH1_PTC_0_START_SHFT);		ptc0 = (long *)GLOBAL_MMR_PHYS_ADDR(0, SH1_PTC_0);		ptc1 = (long *)GLOBAL_MMR_PHYS_ADDR(0, SH1_PTC_1);	} else {		data0 = (1UL << SH2_PTC_A_SHFT) |			(nbits << SH2_PTC_PS_SHFT) |		    	(1UL << SH2_PTC_START_SHFT);		ptc0 = (long *)GLOBAL_MMR_PHYS_ADDR(0, SH2_PTC + 			((ia64_get_rr(start) >> 8) << SH2_PTC_RID_SHFT) );		ptc1 = NULL;	}		mynasid = get_nasid();	spin_lock_irqsave(&sn2_global_ptc_lock, flags);	do {		if (shub1)			data1 = start | (1UL << SH1_PTC_1_START_SHFT);		else			data0 = (data0 & ~SH2_PTC_ADDR_MASK) | (start & SH2_PTC_ADDR_MASK);		for (i = 0; i < nix; i++) {			nasid = nasids[i];			if (unlikely(nasid == mynasid)) {				ia64_ptcga(start, nbits << 2);				ia64_srlz_i();			} else {				ptc0 = CHANGE_NASID(nasid, ptc0);				if (ptc1)					ptc1 = CHANGE_NASID(nasid, ptc1);				pio_atomic_phys_write_mmrs(ptc0, data0, ptc1,							   data1);				flushed = 1;			}		}		if (flushed		    && (wait_piowc() &			SH_PIO_WRITE_STATUS_WRITE_DEADLOCK_MASK)) {			sn2_ptc_deadlock_recovery(ptc0, data0, ptc1, data1);		}		start += (1UL << nbits);	} while (start < end);	spin_unlock_irqrestore(&sn2_global_ptc_lock, flags);	preempt_enable();}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/470ceb05d9a2b4d61c19fac615a79e56e8401565/sn2_smp.c/buggy/arch/ia64/sn/kernel/sn2/sn2_smp.c