From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1UMfX5-0004YI-Vr for mharc-grub-devel@gnu.org; Mon, 01 Apr 2013 10:16:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMfWx-0004WS-5J for grub-devel@gnu.org; Mon, 01 Apr 2013 10:16:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UMfWr-0001Pp-5a for grub-devel@gnu.org; Mon, 01 Apr 2013 10:16:15 -0400 Received: from mail-ea0-x230.google.com ([2a00:1450:4013:c01::230]:50767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMfWq-0001Pc-VW for grub-devel@gnu.org; Mon, 01 Apr 2013 10:16:09 -0400 Received: by mail-ea0-f176.google.com with SMTP id h10so1069812eaj.21 for ; Mon, 01 Apr 2013 07:16:08 -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:x-enigmail-version:content-type; bh=6E0p7bE75eyFGyDZ1v4vjNLajrBU7pV+Hwm9Hl8G5vo=; b=xjyaRDIRUEJdFCJRBO6qvkX8Q17mH89gFq1RGr0DwhnkslXjl5mnyuh0CvPXxyQWlh gdAZGIPfM64utHi0nmzLP9HWN84ULWN3cDRenNkw08SrmAVsjfWDWTVepSIzZijOymKO zW/omeZ65GyjKUC0vrCHwb0c+8sTXrxbY1/B+rG9gXvtCpGSkaz5Csj7BRWaDcaBqx9Q I//thnDLuf35howia0JomEpOr4rShq+XFcInFNl2ie9KD2yJ4oMf3enkcuK8CIfMeUDh qBZnIB/xNYXsirBFhwmkgeMU2MLZYtQ2ZB8OM0onBbmULJDD491g0RfI9KP9AnOqskH3 lkQg== X-Received: by 10.15.61.8 with SMTP id h8mr37469393eex.33.1364825768297; Mon, 01 Apr 2013 07:16:08 -0700 (PDT) Received: from debian.x201.phnet (245-188.1-85.cust.bluewin.ch. [85.1.188.245]) by mx.google.com with ESMTPS id 44sm21389152eek.5.2013.04.01.07.16.07 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Apr 2013 07:16:07 -0700 (PDT) Message-ID: <515996A6.8010804@gmail.com> Date: Mon, 01 Apr 2013 16:16:06 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: The development of GNU GRUB 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> <5159954F.5090207@gmail.com> In-Reply-To: <5159954F.5090207@gmail.com> X-Enigmail-Version: 1.4.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig3A5B0CDFAB5A6371AC344B1B" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::230 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:16:22 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3A5B0CDFAB5A6371AC344B1B Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 01.04.2013 16:10, Francesco Lavra wrote: > On 04/01/2013 01:23 PM, Vladimir '=CF=86-coder/phcoder' Serbinenko wrot= e: >> get_time is wrong function for getting tsc. You should create a timer >> event with 10000 units (=3D1 ms) and in its callback increase millisec= ond >> counter. >=20 > 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 retriev= e > a timestamp counter, the most similar mechanism currently defined by th= e > spec is the get_time service. Looks at events in EFI spec. You can define a periodic event with 1ms period and custom function as callback. Then you just need to count in this function. >=20 > -- > Francesco >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel --------------enig3A5B0CDFAB5A6371AC344B1B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAlFZlqYACgkQNak7dOguQgkzhwD/VoLF/cnOuryUDY4Fz+2TVMfZ 49LPdWMHl2WjqMAfH74A/0IksttpiWWHJqNtimNG61FS2lagyj9kULQS7I9BWxU1 =B3xy -----END PGP SIGNATURE----- --------------enig3A5B0CDFAB5A6371AC344B1B--