summaryrefslogtreecommitdiff
path: root/include/common/aarch32/asm_macros.S
diff options
context:
space:
mode:
authordanh-arm <dan.handley@arm.com>2017-01-31 15:40:20 +0000
committerGitHub <noreply@github.com>2017-01-31 15:40:20 +0000
commitbcc2bf097703c07aabe543681ee2676981831f76 (patch)
tree08f959e45d3c7441d747e0a854b4a069a0b82990 /include/common/aarch32/asm_macros.S
parent474d4eca1ca907968b04a4903d4adefaec4568e1 (diff)
parent10bcd761574a5aaa208041382399e05275011603 (diff)
Merge pull request #821 from jeenu-arm/errata-printing
Errata printing infrastructure
Diffstat (limited to 'include/common/aarch32/asm_macros.S')
-rw-r--r--include/common/aarch32/asm_macros.S12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/common/aarch32/asm_macros.S b/include/common/aarch32/asm_macros.S
index 23122f34..45023a0b 100644
--- a/include/common/aarch32/asm_macros.S
+++ b/include/common/aarch32/asm_macros.S
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2016-2017, 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:
@@ -32,6 +32,7 @@
#include <arch.h>
#include <asm_macros_common.S>
+#include <spinlock.h>
#define WORD_SIZE 4
@@ -124,4 +125,13 @@
#endif
.endm
+ /*
+ * Reserve space for a spin lock in assembly file.
+ */
+ .macro define_asm_spinlock _name:req
+ .align SPINLOCK_ASM_ALIGN
+ \_name:
+ .space SPINLOCK_ASM_SIZE
+ .endm
+
#endif /* __ASM_MACROS_S__ */