HomeFreeBSD

Use memcpy() to copy 64-bit timestamps into the syscall return values.

Description

Use memcpy() to copy 64-bit timestamps into the syscall return values.

On 32-bit platforms, our 64-bit timestamps need to be split up across
two registers. A simple assignment to td_retval[0] will cause the top 32
bits to get lost. By using memcpy(), we will automatically either use 1
or 2 registers depending on the size of register_t.

Details

Provenance
edAuthored on
Parents
rS304554: Rewrite the vDSOs for CloudABI in assembly.
Branches
Unknown
Tags
Unknown