/* Check, whether MC's (virtual) DMA address caused the bus error. See "Virtual DMA Specification", Draft 1.5, Feb 13 1992, SGI  */
static int addr_is_ram(unsigned long addr, unsigned sz)
/* Check, whether MC's (virtual) DMA address caused the bus error. See "Virtual DMA Specification", Draft 1.5, Feb 13 1992, SGI  */
static int addr_is_ram(unsigned long addr, unsigned sz)
{
	int i;
	for (i = 0; i < boot_mem_map.nr_map; i++) {
		unsigned long a = boot_mem_map.map[i].addr;
		if (a <= addr && addr+sz <= a+boot_mem_map.map[i].size)
			return 1;
	}
	return 0;
}