-/* NOTE THIS implementation is for non ppc architectures only */
-
- if (uap->tp) {
- clock_get_calendar_microtime((uint32_t *)&atv.tv_sec, &atv.tv_usec);
- if (IS_64BIT_PROCESS(p)) {
- struct user_timeval user_atv;
- user_atv.tv_sec = atv.tv_sec;
- user_atv.tv_usec = atv.tv_usec;
- /*
- * This cast is not necessary for PPC, but is
- * mostly harmless.
- */
- error = copyout(&user_atv, CAST_USER_ADDR_T(uap->tp), sizeof(struct user_timeval));
- } else {
- error = copyout(&atv, CAST_USER_ADDR_T(uap->tp), sizeof(struct timeval));
- }
- if (error)
- return(error);
- }