Kernel: Warn on unsupport `clock_gettime` `clock_id`s
This commit is contained in:
parent
60bffb5f49
commit
cbcb9f9044
|
@ -1917,16 +1917,13 @@ namespace Kernel
|
|||
switch (clock_id)
|
||||
{
|
||||
case CLOCK_MONOTONIC:
|
||||
{
|
||||
*tp = SystemTimer::get().time_since_boot();
|
||||
break;
|
||||
}
|
||||
case CLOCK_REALTIME:
|
||||
{
|
||||
*tp = SystemTimer::get().real_time();
|
||||
break;
|
||||
}
|
||||
default:
|
||||
dwarnln("TODO: clock_gettime({})", clock_id);
|
||||
return BAN::Error::from_errno(ENOTSUP);
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue