/* * 32-bit land is lacking generic time vsyscalls as well as the legacy 32-bit * time syscalls like gettimeofday. Skip these definitions since on 32-bit.
*/ #ifdef CONFIG_GENERIC_TIME_VSYSCALL
#define VDSO_HAS_CLOCK_GETRES 1
static __always_inline int gettimeofday_fallback(struct __kernel_old_timeval *_tv, struct timezone *_tz)
{ registerstruct __kernel_old_timeval *tv asm("a0") = _tv; registerstruct timezone *tz asm("a1") = _tz; registerlong ret asm("a0"); registerlong nr asm("a7") = __NR_gettimeofday;
static __always_inline u64 __arch_get_hw_counter(s32 clock_mode, conststruct vdso_time_data *vd)
{ /* * The purpose of csr_read(CSR_TIME) is to trap the system into * M-mode to obtain the value of CSR_TIME. Hence, unlike other * architecture, no fence instructions surround the csr_read()
*/ return csr_read(CSR_TIME);
}
#endif/* !__ASSEMBLY__ */
#endif/* __ASM_VDSO_GETTIMEOFDAY_H */
Messung V0.5
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.