From 932b3ae2324780b6ecdf0ca00147ef90a1854911 Mon Sep 17 00:00:00 2001 From: Antonio Nino Diaz Date: Thu, 22 Nov 2018 15:53:17 +0000 Subject: Synchronise arch.h and arch_helpers.h with TF-A-Tests The headers forked at some point in the past and have diverged a lot. In order to make it easier to share code between TF-A-Tests and TF-A, this patch synchronises most of the definitions in the mentioned headers. This is not a complete sync, it has to be followed by more cleanup. This patch also removes the read helpers for the AArch32 instructions ats1cpr and ats1hr (they are write-only). Change-Id: Id13ecd7aeb83bd2318cd47156d71a42f1c9f6ba2 Signed-off-by: Antonio Nino Diaz --- include/lib/utils_def.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/lib/utils_def.h') diff --git a/include/lib/utils_def.h b/include/lib/utils_def.h index fa13caa6..02963ac5 100644 --- a/include/lib/utils_def.h +++ b/include/lib/utils_def.h @@ -160,5 +160,6 @@ */ #define ASSERT_SYM_PTR_ALIGN(sym) assert(((size_t)(sym) % __alignof__(*(sym))) == 0) +#define COMPILER_BARRIER() __asm__ volatile ("" ::: "memory") #endif /* UTILS_DEF_H */ -- cgit v1.2.3