Add two time conversion helpers to glibc (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 13 Apr 2016 20:26:54 +0000 (16:26 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 15 Apr 2016 14:29:13 +0000 (10:29 -0400)
Rebuild glibc.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/Versions
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/parlib-compat.c

index 8f96d02..37b9f7d 100644 (file)
@@ -65,5 +65,7 @@ libc {
     akaros_printf;
     print_user_context;
     _assert_failed;
+    nsec2tsc;
+    tsc2nsec;
   }
 }
index c6fd1b5..0afef27 100644 (file)
@@ -42,3 +42,15 @@ void ___assert_failed(const char *file, int line, const char *msg)
        assert(0);
 }
 weak_alias(___assert_failed, _assert_failed)
+
+uint64_t __nsec2tsc(uint64_t nsec)
+{
+       assert(0);
+}
+weak_alias(__nsec2tsc, nsec2tsc)
+
+uint64_t __tsc2nsec(uint64_t tsc_time)
+{
+       assert(0);
+}
+weak_alias(__tsc2nsec, tsc2nsec)