eliminate explicit (long) casts when making syscalls
this practice came from very early, before internal/syscall.h defined macros that could accept pointer arguments directly and handle them correctly. aside from being ugly and unnecessary, it looks like it will be problematic when we add support for 32-bit ABIs on archs where registers (and syscall arguments) are 64-bit, e.g. x32 and mips n32.
This commit is contained in:
parent
839cc4e6da
commit
eca335fc04
5 changed files with 5 additions and 5 deletions
|
|
@ -10,6 +10,6 @@ void __wait(volatile int *addr, volatile int *waiters, int val, int priv)
|
|||
}
|
||||
if (waiters) a_inc(waiters);
|
||||
while (*addr==val)
|
||||
__syscall(SYS_futex, (long)addr, FUTEX_WAIT|priv, val, 0);
|
||||
__syscall(SYS_futex, addr, FUTEX_WAIT|priv, val, 0);
|
||||
if (waiters) a_dec(waiters);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue