aboutsummaryrefslogtreecommitdiff
path: root/src/device/oprom/yabel/compat/functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/device/oprom/yabel/compat/functions.c')
-rw-r--r--src/device/oprom/yabel/compat/functions.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/device/oprom/yabel/compat/functions.c b/src/device/oprom/yabel/compat/functions.c
index 542c81f315..f693d7bae9 100644
--- a/src/device/oprom/yabel/compat/functions.c
+++ b/src/device/oprom/yabel/compat/functions.c
@@ -47,7 +47,8 @@ unsigned long tb_freq = 0;
u64 get_time(void)
{
- u64 act;
+ u64 act = 0;
+#if CONFIG_ARCH_X86
u32 eax, edx;
__asm__ __volatile__(
@@ -55,5 +56,6 @@ u64 get_time(void)
: "=a"(eax), "=d"(edx)
: /* no inputs, no clobber */);
act = ((u64) edx << 32) | eax;
+#endif
return act;
}