toku-mac commented on code in PR #18883: URL: https://github.com/apache/nuttx/pull/18883#discussion_r3254621533
########## sched/clock/clock_gettime.c: ########## @@ -45,6 +45,20 @@ # include "clock/clock_timekeeping.h" #endif +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +#if defined(CONFIG_ARCH_SIM) && defined(CONFIG_HOST_MACOS) +/* Rust code built for the macOS host uses Darwin's libc clock IDs. When it + * is linked into the NuttX simulator, those values are passed to NuttX's + * clock_gettime() implementation instead of Darwin's one. + */ + +# define DARWIN_CLOCK_MONOTONIC 6 Review Comment: I've pushed commit a9a458a8. Adding arch/sim/src/sim/macos/sim_clock_gettime.c. For testing purposes, this includes the modified PR #18886. If merging proves problematic, I'll revert those changes later. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
