[PATCH 02/10] ARM: hotplug cpu: setup 1:1 map for entire kernel image for secondary CPUs

Nicolas Pitre nico at fluxnic.net
Mon Oct 4 14:20:47 EDT 2010


On Mon, 4 Oct 2010, Russell King - ARM Linux wrote:

> +static inline void identity_mapping_add(pgd_t *pgd, unsigned long start,
> +	unsigned long end)
> +{
> +	unsigned long addr, prot;
> +	pmd_t *pmd;
> +
> +	prot = PMD_TYPE_SECT | PMD_SECT_AP_WRITE;
> +	if (cpu_architecture() <= CPU_ARCH_ARMv5TEJ && !cpu_is_xscale())
> +		prot |= PMD_BIT4;

Is there any SMP capable implementation where the above test is 
useful?


Nicolas



More information about the linux-arm-kernel mailing list