#
d864b580 |
| 01-Oct-2020 |
Thomas Huth <thuth@redhat.com> |
lib/arm64/spinlock: Fix inline assembly for Clang
/home/travis/build/huth/kvm-unit-tests/lib/arm64/spinlock.c:29:12: error: value size does not match register size specified by the constraint and
lib/arm64/spinlock: Fix inline assembly for Clang
/home/travis/build/huth/kvm-unit-tests/lib/arm64/spinlock.c:29:12: error: value size does not match register size specified by the constraint and modifier [-Werror,-Wasm-operand-widths] : "=&r" (val), "=&r" (fail) ^ /home/travis/build/huth/kvm-unit-tests/lib/arm64/spinlock.c:27:9: note: use constraint modifier "w" " mov %0, #1\n" ^~ %w0
Use the "w" modifier as suggested to fix the issue.
Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <20201001072234.143703-7-thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Andrew Jones <drjones@redhat.com> Tested-by: Andrew Jones <drjones@redhat.com>
show more ...
|
#
3c36da79 |
| 17-Jan-2018 |
Andrew Jones <drjones@redhat.com> |
arm/arm64: cleanup alloc.h includes
It used to be necessary for the phys_addr_t typedef, but now it doesn't make sense in a few places.
Signed-off-by: Andrew Jones <drjones@redhat.com> Signed-off-b
arm/arm64: cleanup alloc.h includes
It used to be necessary for the phys_addr_t typedef, but now it doesn't make sense in a few places.
Signed-off-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
#
23fb3b17 |
| 25-Jun-2015 |
Andrew Jones <drjones@redhat.com> |
arm/arm64: spinlocks: fix memory barriers
It shouldn't be necessary to use a barrier on the way into spin_lock. We'll be focused on a single address until we get it (exclusively) set, and then we'll
arm/arm64: spinlocks: fix memory barriers
It shouldn't be necessary to use a barrier on the way into spin_lock. We'll be focused on a single address until we get it (exclusively) set, and then we'll do a barrier on the way out. Also, it does make sense to do a barrier on the way in to spin_unlock, i.e. ensure what we did in the critical section is ordered wrt to what we do outside it, before we announce that we're outside.
Signed-off-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
573687f8 |
| 01-Feb-2015 |
Andrew Jones <drjones@redhat.com> |
arm64: implement spinlocks
We put this off, as it wasn't necessary without smp. Now it is. Only need to do this for arm64, as we've already done it already for arm.
Signed-off-by: Andrew Jones <drj
arm64: implement spinlocks
We put this off, as it wasn't necessary without smp. Now it is. Only need to do this for arm64, as we've already done it already for arm.
Signed-off-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
show more ...
|