On aarch64, prefetch64() takes a pointer to the lock, but dereferences the
pointer as the address to prefetch. Don't do that; it causes memory accesses to
a random memory location (i.e. takes the literal lock value as the address).
Instead, just pass the value of the pointer into the PRFM instruction.
On aarch64, prefetch64() takes a pointer to the lock, but dereferences the pointer as the address to prefetch. Don't do that; it causes memory accesses to a random memory location (i.e. takes the literal lock value as the address).
Instead, just pass the value of the pointer into the PRFM instruction.