[PATCH] POWER: Add context-synchronizing instructions to pkey_write [BZ #25954]
Paul E Murphy
murphyp@linux.ibm.com
Mon May 11 14:04:15 GMT 2020
On 5/11/20 5:12 AM, Florian Weimer via Libc-alpha wrote:
> @@ -37,7 +37,7 @@ pkey_read (void)
> static inline void
> pkey_write (unsigned long int value)
> {
> - __asm__ volatile ("mtspr 13, %0" : : "r" (value));
> + __asm__ volatile ("isync; mtspr 13, %0; isync" : : "r" (value));
> }
>
> /* Number of the largest supported key. This depends on the width of
LGTM.
More information about the Libc-alpha
mailing list