From: Francesco Lavra <francescolavra.fl@gmail.com>
To: grub-devel@gnu.org
Subject: Re: [PATCH 7/7] Add support for ARM UEFI ("EFI") platforms
Date: Mon, 01 Apr 2013 16:49:34 +0200 [thread overview]
Message-ID: <51599E7E.6040703@gmail.com> (raw)
In-Reply-To: <515996A6.8010804@gmail.com>
On 04/01/2013 04:16 PM, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> On 01.04.2013 16:10, Francesco Lavra wrote:
>
>> 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.
>
> 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.
You are right, I wasn't aware of this capability. I have no idea how
widespread is support of timer events in different ARM EFI
implementations. We'll find out...
next prev parent reply other threads:[~2013-04-01 14:49 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-24 17:01 [PATCH 7/7] Add support for ARM UEFI ("EFI") platforms Leif Lindholm
2013-04-01 2:31 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-04-01 10:41 ` Francesco Lavra
2013-04-01 11:23 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-04-01 14:10 ` Francesco Lavra
2013-04-01 14:16 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-04-01 14:49 ` Francesco Lavra [this message]
2013-04-03 17:50 ` Leif Lindholm
2013-04-01 16:24 ` Francesco Lavra
2013-04-03 18:07 ` Leif Lindholm
2013-04-03 20:01 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-04-04 12:54 ` Leif Lindholm
2013-04-09 17:30 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-05-09 18:08 ` Leif Lindholm
2013-05-11 8:42 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-05-11 18:00 ` Francesco Lavra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51599E7E.6040703@gmail.com \
--to=francescolavra.fl@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).