[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [kvm-unit-tests PATCH 1/2] arm64: timer: add TVAL acces
From: |
Andrew Jones |
Subject: |
Re: [Qemu-devel] [kvm-unit-tests PATCH 1/2] arm64: timer: add TVAL accessors |
Date: |
Tue, 17 Jul 2018 12:52:42 +0200 |
User-agent: |
NeoMutt/20180622 |
On Mon, Jul 16, 2018 at 04:14:37PM +0100, Andre Przywara wrote:
> The ARM arch timer features the CVAL register, which holds an absolute
> value that is compared against the counter value.
> But there is also the TVAL register, which is defined as (CVAL - counter),
> and can be used to program or read relative timeouts.
>
> Add accessors for the TVAL register, to be able to read and write them
> easily later.
>
> Signed-off-by: Andre Przywara <address@hidden>
> ---
> arm/timer.c | 26 ++++++++++++++++++++++++++
> 1 file changed, 26 insertions(+)
>
Reviewed-by: Andrew Jones <address@hidden>