AMU: Implement context save/restore for aarch32

Add amu_context_save() and amu_context_restore() functions for aarch32

Change-Id: I4df83d447adeaa9d9f203e16dc5a919ffc04d87a
Signed-off-by: Joel Hutton <joel.hutton@arm.com>
This commit is contained in:
Joel Hutton 2017-12-21 15:21:20 +00:00 committed by Dimitris Papastamos
parent ce213b9622
commit c70da54631
5 changed files with 77 additions and 23 deletions

View file

@ -7,10 +7,10 @@
#ifndef __AMU_H__
#define __AMU_H__
#include <sys/cdefs.h> /* for CASSERT() */
#include <cassert.h>
#include <platform_def.h>
#include <stdint.h>
#include <sys/cdefs.h> /* for CASSERT() */
/* All group 0 counters */
#define AMU_GROUP0_COUNTERS_MASK 0xf