Re: [PATCH] sparc64: Add ADI capability to cpu capabilities

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 02, 2015 at 04:06:40PM -0700, Khalid Aziz wrote:
> Add ADI (Application Data Integrity) capability to cpu capabilities list.
> ADI capability allows virtual addresses to be encoded with a tag in
> bits 63-60. This tag serves as an access control key for the regions
> of virtual address with ADI enabled and a key set on them. Hypervisor
> encodes this capability as "adp" in "hwcap-list" property in machine
> description.

> +			if (strcmp(hwcaps[i], "adp") == 0)
> +				seq_printf(m, "%sadi",
> +					   printed ? "," : "");
> +			else
> +				seq_printf(m, "%s%s",
> +					   printed ? "," : "", hwcaps[i]);

> +	if (strcmp(name, "adp") == 0)
> +		pr_cont("%sadi", (*printed) ? "," : "");
> +	else
> +		pr_cont("%s%s", (*printed) ? "," : "", name);

Why is it necessary to change the string from adp to adi in this output?

-- 
     2. That which causes joy or happiness.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux