Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

weird code



Hi,

sys/arch/aarch64/aarch64/syscall.c:185
                if (__predict_false(sizeof(register_t) != sizeof(REGISTER_T)

Given:
#ifndef REGISTER_T
#define REGISTER_T	register_t
#endif

-- No other definitions of REGISTER_T in sys/

Isn't this:
- Always false
- Can inline REGISTER_T

Like this was probably for 32bit compat

while here, the COMPAT_LINUX code in the same file (lines 114-117) looks bogus.

(if I'm reading the code correctly it's thinking the syscall num is in
r0, but it's in r8 in linux.


Home | Main Index | Thread Index | Old Index