aboutsummaryrefslogtreecommitdiff
path: root/include/lib
diff options
context:
space:
mode:
authorDan Handley <dan.handley@arm.com>2015-04-01 17:34:24 +0100
committerDan Handley <dan.handley@arm.com>2015-04-27 18:06:24 +0100
commite2bf57f84109f32da5a5bdbfa430d2b81a7fff02 (patch)
tree60d55dc3d7e3aeaad7c19db14a0af7414e788d0d /include/lib
parentce4c820d8ccf803dac0329cabdd6e75c78e81f4e (diff)
downloadarm-trusted-firmware-e2bf57f84109f32da5a5bdbfa430d2b81a7fff02.tar.gz
Add header guards to asm macro files
Some assembly files containing macros are included like header files into other assembly files. This will cause assembler errors if they are included multiple times. Add header guards to assembly macro files to avoid assembler errors. Change-Id: Ia632e767ed7df7bf507b294982b8d730a6f8fe69
Diffstat (limited to 'include/lib')
-rw-r--r--include/lib/cpus/aarch64/cpu_macros.S6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/lib/cpus/aarch64/cpu_macros.S b/include/lib/cpus/aarch64/cpu_macros.S
index 089f09c4..72c35fb6 100644
--- a/include/lib/cpus/aarch64/cpu_macros.S
+++ b/include/lib/cpus/aarch64/cpu_macros.S
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2014-2015, ARM Limited and Contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -27,6 +27,8 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
+#ifndef __CPU_MACROS_S__
+#define __CPU_MACROS_S__
#include <arch.h>
@@ -80,3 +82,5 @@ CPU_OPS_SIZE = .
.quad \_name\()_cpu_reg_dump
#endif
.endm
+
+#endif /* __CPU_MACROS_S__ */