mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00

The codebase was using non-standard headers. It is needed to replace them by the correct ones so that we can use the new libc headers. Change-Id: I530f71d9510cb036e69fe79823c8230afe890b9d Acked-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
29 lines
507 B
C
29 lines
507 B
C
/*
|
|
* Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef __SPINLOCK_H__
|
|
#define __SPINLOCK_H__
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef struct spinlock {
|
|
volatile uint32_t lock;
|
|
} spinlock_t;
|
|
|
|
void spin_lock(spinlock_t *lock);
|
|
void spin_unlock(spinlock_t *lock);
|
|
|
|
#else
|
|
|
|
/* Spin lock definitions for use in assembly */
|
|
#define SPINLOCK_ASM_ALIGN 2
|
|
#define SPINLOCK_ASM_SIZE 4
|
|
|
|
#endif
|
|
|
|
#endif /* __SPINLOCK_H__ */
|