feat: add time syscall & command in shell

This commit is contained in:
2026-02-18 17:34:36 +01:00
parent ea0d909f68
commit dfa86b272c
14 changed files with 171 additions and 3 deletions
+3
View File
@@ -176,6 +176,9 @@ namespace zenith {
if (rows) *rows = (int)(r >> 32);
}
// Timekeeping (wall-clock)
inline void gettime(Zenith::DateTime* out) { syscall1(Zenith::SYS_GETTIME, (uint64_t)out); }
// Power management
[[noreturn]] inline void reset() {
syscall0(Zenith::SYS_RESET);