/* On x86, access has to be given to the first megabyte of ram because that area contains bios code and data regions used by X and dosemu and similar apps. Access has to be given to non-kernel-ram areas as well, these contain the PCI mmio resources as well as potential bios/acpi data regions.  */
int devmem_is_allowed(unsigned long pagenr)
/* On x86, access has to be given to the first megabyte of ram because that area contains bios code and data regions used by X and dosemu and similar apps. Access has to be given to non-kernel-ram areas as well, these contain the PCI mmio resources as well as potential bios/acpi data regions.  */
int devmem_is_allowed(unsigned long pagenr)
{
	if (pagenr <= 256)
		return 1;
	if (iomem_is_exclusive(pagenr << PAGE_SHIFT))
		return 0;
	if (!page_is_ram(pagenr))
		return 1;
	return 0;
}