From owner-svn-src-all@freebsd.org Sat Feb 8 13:35:57 2020 Return-Path: Delivered-To: svn-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2B3DE242A3E; Sat, 8 Feb 2020 13:35:57 +0000 (UTC) (envelope-from andrew@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48FCqK0LD5z3LfH; Sat, 8 Feb 2020 13:35:57 +0000 (UTC) (envelope-from andrew@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 025E91E28A; Sat, 8 Feb 2020 13:35:57 +0000 (UTC) (envelope-from andrew@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 018DZuf9072335; Sat, 8 Feb 2020 13:35:56 GMT (envelope-from andrew@FreeBSD.org) Received: (from andrew@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 018DZuN9072334; Sat, 8 Feb 2020 13:35:56 GMT (envelope-from andrew@FreeBSD.org) Message-Id: <202002081335.018DZuN9072334@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: andrew set sender to andrew@FreeBSD.org using -f From: Andrew Turner Date: Sat, 8 Feb 2020 13:35:56 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r357677 - head/sys/arm64/linux X-SVN-Group: head X-SVN-Commit-Author: andrew X-SVN-Commit-Paths: head/sys/arm64/linux X-SVN-Commit-Revision: 357677 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Feb 2020 13:35:57 -0000 Author: andrew Date: Sat Feb 8 13:35:56 2020 New Revision: 357677 URL: https://svnweb.freebsd.org/changeset/base/357677 Log: Implement the Linux/arm64 VDSO gettimeofday and clock_gettime These are used by Centos 7 and will be needed for the emulators/linux_base-c7 port. Sponsored by: DARPA, AFRL Modified: head/sys/arm64/linux/linux_locore.asm Modified: head/sys/arm64/linux/linux_locore.asm ============================================================================== --- head/sys/arm64/linux/linux_locore.asm Sat Feb 8 13:33:47 2020 (r357676) +++ head/sys/arm64/linux/linux_locore.asm Sat Feb 8 13:35:56 2020 (r357677) @@ -2,6 +2,7 @@ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (C) 2018 Turing Robotic Industries Inc. + * Copyright (C) 2020 Andrew Turner * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -33,6 +34,8 @@ #include +#include + .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)