Fix aarch64 futex assembly routines.
Also make the other architectures more similar to one another,
use NULL instead of 0 in calling code, and remove an unused #define.
Change-Id: I52b874afb6a351c802f201a0625e484df6d093bb
diff --git a/libc/bionic/system_properties.c b/libc/bionic/system_properties.c
index 9fdb6f5..825894f 100644
--- a/libc/bionic/system_properties.c
+++ b/libc/bionic/system_properties.c
@@ -454,7 +454,7 @@
for(;;) {
serial = pi->serial;
while(SERIAL_DIRTY(serial)) {
- __futex_wait((volatile void *)&pi->serial, serial, 0);
+ __futex_wait((volatile void *)&pi->serial, serial, NULL);
serial = pi->serial;
}
len = SERIAL_VALUE_LEN(serial);
@@ -572,12 +572,12 @@
prop_area *pa = __system_property_area__;
n = pa->serial;
do {
- __futex_wait(&pa->serial, n, 0);
+ __futex_wait(&pa->serial, n, NULL);
} while(n == pa->serial);
} else {
n = pi->serial;
do {
- __futex_wait((volatile void *)&pi->serial, n, 0);
+ __futex_wait((volatile void *)&pi->serial, n, NULL);
} while(n == pi->serial);
}
return 0;
@@ -635,7 +635,7 @@
prop_area *pa = __system_property_area__;
do {
- __futex_wait(&pa->serial, serial, 0);
+ __futex_wait(&pa->serial, serial, NULL);
} while(pa->serial == serial);
return pa->serial;