mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:43:28 +08:00
Update to use 64-bit timer when available
This commit is contained in:
+2
-1
@@ -11,7 +11,8 @@
|
||||
"clock_getres","time.h","","int","clockid_t","struct timespec*"
|
||||
"clock_gettime","time.h","","int","clockid_t","struct timespec*"
|
||||
"clock_settime","time.h","","int","clockid_t","const struct timespec*"
|
||||
"clock_systimer","nuttx/clock.h","!defined(__HAVE_KERNEL_GLOBALS)","uint32_t"
|
||||
"clock_systimer32","nuttx/clock.h","!defined(__HAVE_KERNEL_GLOBALS) && !defined(CONFIG_SYSTEM_TIME64)","uint32_t"
|
||||
"clock_systimer64","nuttx/clock.h","!defined(__HAVE_KERNEL_GLOBALS) && defined(CONFIG_SYSTEM_TIME64)","uint64_t"
|
||||
"close","unistd.h","CONFIG_NSOCKET_DESCRIPTORS > 0 || CONFIG_NFILE_DESCRIPTORS > 0","int","int"
|
||||
"closedir","dirent.h","CONFIG_NFILE_DESCRIPTORS > 0","int","FAR DIR*"
|
||||
"connect","sys/socket.h","CONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET)","int","int","FAR const struct sockaddr*","socklen_t"
|
||||
|
||||
|
@@ -60,7 +60,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: syscall_clock_systimer
|
||||
* Name: syscall_clock_systimer32/64
|
||||
*
|
||||
* Description:
|
||||
* In the kernel build, proxying for clock_systimer() must be handled
|
||||
@@ -74,7 +74,14 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
uint32_t syscall_clock_systimer(void)
|
||||
#ifdef CONFIG_SYSTEM_TIME64
|
||||
uint64_t syscall_clock_systimer64(void)
|
||||
{
|
||||
return clock_systimer();
|
||||
return clock_systimer64();
|
||||
}
|
||||
#else
|
||||
uint32_t syscall_clock_systimer32(void)
|
||||
{
|
||||
return clock_systimer32();
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -99,7 +99,11 @@
|
||||
* have an address that can be included in the g_funclookup[] table.
|
||||
*/
|
||||
|
||||
uint32_t syscall_clock_systimer(void);
|
||||
#ifdef CONFIG_SYSTEM_TIME64
|
||||
uint64_t syscall_clock_systimer64(void);
|
||||
#else
|
||||
uint32_t syscall_clock_systimer32(void);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
|
||||
@@ -148,7 +148,11 @@ SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert)
|
||||
* NuttX configuration.
|
||||
*/
|
||||
|
||||
SYSCALL_LOOKUP(syscall_clock_systimer, 0, STUB_clock_systimer)
|
||||
#ifdef CONFIG_SYSTEM_TIME64
|
||||
SYSCALL_LOOKUP(syscall_clock_systimer64, 0, STUB_clock_systimer64)
|
||||
#endif
|
||||
SYSCALL_LOOKUP(syscall_clock_systimer32, 0, STUB_clock_systimer32)
|
||||
#endif
|
||||
SYSCALL_LOOKUP(clock_getres, 2, STUB_clock_getres)
|
||||
SYSCALL_LOOKUP(clock_gettime, 2, STUB_clock_gettime)
|
||||
SYSCALL_LOOKUP(clock_settime, 2, STUB_clock_settime)
|
||||
|
||||
Reference in New Issue
Block a user