]> rtime.felk.cvut.cz Git - jailhouse.git/commit
arm: mmio emulation skeleton
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Wed, 2 Jul 2014 13:52:13 +0000 (14:52 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 19 Dec 2014 10:04:07 +0000 (11:04 +0100)
commit187bf71fc1e381d089b2403c24baa97376453547
tree7a9e29300bf630e986b63f04338e85a23f68d678
parentcb908ea3feb40392af4c9ae1c0d77a3fd45814a4
arm: mmio emulation skeleton

This patch adds the necessary code for handling MMIO accesses. The trap
handler fills a mmio_access struct according to the fields in the ESR,
and passes it to all relevant sub-handlers.
If all return UNHANDLED, the access is considered invalid and the CPU is
put into failed mode.

Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
[Jan: switch to mmio accessors, use asm/mmio.h]
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/arch/arm/Makefile
hypervisor/arch/arm/include/asm/bitops.h
hypervisor/arch/arm/include/asm/mmio.h
hypervisor/arch/arm/include/asm/processor.h
hypervisor/arch/arm/include/asm/traps.h
hypervisor/arch/arm/mmio.c [new file with mode: 0644]
hypervisor/arch/arm/traps.c