aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2020-02-08 13:35:56 +0000
committerAndrew Turner <andrew@FreeBSD.org>2020-02-08 13:35:56 +0000
commiteb43a03acb08801a6734b6f3e75c6e6b8971220e (patch)
tree94f231aa0c39bc422bb661a9167db906feff51d1
parent73f20bb3a9a1f6b6c3bd156d3cecd9f0ff4a17cd (diff)
Notes
-rw-r--r--sys/arm64/linux/linux_locore.asm9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arm64/linux/linux_locore.asm b/sys/arm64/linux/linux_locore.asm
index 952131d25d81..b7e764b6d379 100644
--- a/sys/arm64/linux/linux_locore.asm
+++ b/sys/arm64/linux/linux_locore.asm
@@ -2,6 +2,7 @@
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (C) 2018 Turing Robotic Industries Inc.
+ * Copyright (C) 2020 Andrew Turner <andrew@FreeBSD.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -33,6 +34,8 @@
#include <machine/asm.h>
+#include <arm64/linux/linux_syscall.h>
+
.data
.globl linux_platform
@@ -46,11 +49,13 @@ ENTRY(__kernel_rt_sigreturn)
ret
ENTRY(__kernel_gettimeofday)
- brk #0 /* LINUXTODO: implement __kernel_gettimeofday */
+ ldr x8, =LINUX_SYS_gettimeofday
+ svc #0
ret
ENTRY(__kernel_clock_gettime)
- brk #0 /* LINUXTODO: implement __kernel_clock_gettime */
+ ldr x8, =LINUX_SYS_linux_clock_gettime
+ svc #0
ret
ENTRY(__kernel_clock_getres)