Files
ThreadX4TGFS/test/threadx/vp_time.c
T
alex d404e17e5a Migrates plain ThreadX to the upstream RISC-V ports
Keeps the Moonlight startup objects local to the board. Updates the plain and SMP VP regression harnesses for the new ThreadX revision and replaces generated ISR hooks with direct callbacks.
2026-11-26 18:56:36 +01:00

11 lines
201 B
C

#include "hwtimer.h"
#include <time.h>
time_t time(time_t *result)
{
time_t now = (time_t)(get_aclint_mtime(aclint) / TICKNUM_PER_SECOND);
if (result)
*result = now;
return now;
}