aboutsummaryrefslogtreecommitdiff
path: root/libs/libc/crt/crt0.c
diff options
context:
space:
mode:
authorMarvin Borner2021-04-14 14:34:38 +0200
committerMarvin Borner2021-04-14 14:34:38 +0200
commit462eaa9531b9e62916b02ab52759cd070de755d3 (patch)
tree71bb32daa5f8b4389c9d4ce1e42d66600090485f /libs/libc/crt/crt0.c
parent212582f69dea4c99c292081b15ea526014b9ad44 (diff)
Implemented some I/O interfaces
Diffstat (limited to 'libs/libc/crt/crt0.c')
-rw-r--r--libs/libc/crt/crt0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/libc/crt/crt0.c b/libs/libc/crt/crt0.c
index 03e569c..3ab7ed4 100644
--- a/libs/libc/crt/crt0.c
+++ b/libs/libc/crt/crt0.c
@@ -16,7 +16,7 @@ int _start(int argc, char **argv);
int _start(int argc, char **argv)
{
u32 stamp = 0;
- assert(read("/dev/rtc", &stamp, 0, sizeof(stamp)) == sizeof(stamp) && stamp);
+ assert(io_read(IO_TIMER, &stamp, 0, sizeof(stamp)) == sizeof(stamp) && stamp);
srand(stamp);
__stack_chk_guard = rand();