OSDN Git Service

arm: traps: emulate a MRCC instruction reading CNTPCT register
authorSe Wang (Patrick) Oh <sewango@codeaurora.org>
Thu, 28 May 2015 19:37:22 +0000 (12:37 -0700)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:08:51 +0000 (11:08 -0700)
commita1c9d666be3e2c85c914b82cd1a201a3fd2be42d
tree6c7cbdd28fcc2d91bd1fd36f39884bd35e37d746
parent56e8f397e636a792943c75b4766437b11bb49a28
arm: traps: emulate a MRCC instruction reading CNTPCT register

A user space application is planned to support feature for
synchronized timestamp among debug packets across peripherals.
As part of the feature, it is responsible for providing physical
timer count value to user space. If memory mapped timer is used
in ARM arch, Usersapce can't read the physical timer count directly
with a MRCC ASM instruction. So Kernel traps the instruction and
returns the physical timer count.

Change-Id: Ia3f0d9c8c06ca9e2204187890c0c57c8640e4f7e
Signed-off-by: Se Wang (Patrick) Oh <sewango@codeaurora.org>
[abhimany: minor merge conflict resolution]
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
arch/arm/include/asm/traps.h
arch/arm/kernel/traps.c
arch/arm64/include/asm/traps.h
drivers/clocksource/arm_arch_timer.c