diff options
author | T Michael Turney <mturney@codeaurora.org> | 2018-04-26 10:14:20 -0700 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2018-05-01 23:34:03 +0000 |
commit | 1e3e02a1d2cbcaf0f3f9a99ef58654ff6edcf1e4 (patch) | |
tree | 1f09f2e5abf0f12caf43292cc64c01954ac44567 /payloads/libpayload/include | |
parent | 7978b8b725c421679d0f87128f1e6277c4edda4b (diff) |
libpayload: Add raw_read_ functions
Add: raw_read_cntfrq_el0() and raw_read_cntpct_el0()
Required to support Arch64 Timer
Change-Id: I86aa97039304b9e9336d0146febfe1811c9e075a
Signed-off-by: T Michael Turney <mturney@codeaurora.org>
Reviewed-on: https://review.coreboot.org/25649
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'payloads/libpayload/include')
-rw-r--r-- | payloads/libpayload/include/arm64/arch/lib_helpers.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/payloads/libpayload/include/arm64/arch/lib_helpers.h b/payloads/libpayload/include/arm64/arch/lib_helpers.h index 2b346c4d41..99d6dcbc7d 100644 --- a/payloads/libpayload/include/arm64/arch/lib_helpers.h +++ b/payloads/libpayload/include/arm64/arch/lib_helpers.h @@ -360,6 +360,8 @@ uint64_t raw_read_vbar_current(void); void raw_write_vbar_current(uint64_t vbar); uint64_t raw_read_vbar(uint32_t el); void raw_write_vbar(uint64_t vbar, uint32_t el); +uint64_t raw_read_cntpct_el0(void); +uint32_t raw_read_cntfrq_el0(void); /* Cache maintenance system instructions */ void dccisw(uint64_t cisw); |