From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1UMfRW-00033q-7R for mharc-grub-devel@gnu.org; Mon, 01 Apr 2013 10:10:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMfRP-00031O-Cn for grub-devel@gnu.org; Mon, 01 Apr 2013 10:10:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UMfRL-0007kE-0q for grub-devel@gnu.org; Mon, 01 Apr 2013 10:10:31 -0400 Received: from mail-ea0-x22b.google.com ([2a00:1450:4013:c01::22b]:46217) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMfRK-0007jw-P5 for grub-devel@gnu.org; Mon, 01 Apr 2013 10:10:26 -0400 Received: by mail-ea0-f171.google.com with SMTP id b15so1023162eae.30 for ; Mon, 01 Apr 2013 07:10:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=+8u92BRT6y3RPwEzqWt3y6MNMtSOK0l3bjWyLC0znIE=; b=Yhr9x1Ar1Oz+0MEUzTyDbbTh1vKOIfpV5Vw6gk8pqfsnsL4ZPYFzcVphnSHlU0li31 EuFy9lhL8BI1xqGJAq/T2fVQxVNiCXuGmhkKWLhy7x7C90Iu1ARq97jSbCdAct3tBYmp 3ZN5+HHv/YFy3Vmr+Z4at8J6owJHX/cythfLqohHz85PhzFeKxhkwddBsFBOKMCAnSM3 bMqzZYm1jeejrVLmaACCw+yEZxkeXuAWj95tYQG8SzIz7pKzy/2Saa0eD5iWiOxNJTFM p+FylqSLSlE9fr6auQw4nU9bSHDUmkDww+e/Ukszo/zUD6ewDfc1XVBdKS7btndB70ww KI1w== X-Received: by 10.15.21.1 with SMTP id c1mr37816019eeu.36.1364825425958; Mon, 01 Apr 2013 07:10:25 -0700 (PDT) Received: from [192.168.56.2] ([151.36.245.148]) by mx.google.com with ESMTPS id s3sm21372466eem.4.2013.04.01.07.10.14 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Apr 2013 07:10:25 -0700 (PDT) Message-ID: <5159954F.5090207@gmail.com> Date: Mon, 01 Apr 2013 16:10:23 +0200 From: Francesco Lavra User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: [PATCH 7/7] Add support for ARM UEFI ("EFI") platforms References: <5158F171.6030702@gmail.com> <51596446.3030709@gmail.com> <51596E28.2030702@gmail.com> In-Reply-To: <51596E28.2030702@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::22b X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Apr 2013 14:10:36 -0000 On 04/01/2013 01:23 PM, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > get_time is wrong function for getting tsc. You should create a timer > event with 10000 units (=1 ms) and in its callback increase millisecond > counter. The problem is that such timer event would be machine-specific and wouldn't work across different ARM SoCs. So the best place to handle these machine-specific details would be in the platform firmware. Unfortunately the EFI spec doesn't have a standard mechanism to retrieve a timestamp counter, the most similar mechanism currently defined by the spec is the get_time service. -- Francesco