1/* 2 * Copyright (c) 2007-2015 ETH Zurich. 3 * All rights reserved. 4 * 5 * This file is distributed under the terms in the attached LICENSE file. 6 * If you do not find this file, copies can be found by writing to: 7 * ETH Zurich D-INFK, CAB F.78, Universitaestr. 6, CH-8092 Zurich. 8 * Attn: Systems Group. 9 */ 10 11#ifndef __SPINLOCK_H 12#define __SPINLOCK_H 13 14/* Need to include this for errval_t */ 15#include <errors/errno.h> 16 17#define PRINTF_LOCK 0 18 19extern errval_t spinlock_init(void); 20extern errval_t spinlock_early_init(void); 21 22/* XXX - this is unimplemented on ARMv8 */ 23static inline void spinlock_acquire(int locknumber) {} 24static inline void spinlock_release(int locknumber) {} 25 26#endif //__SPINLOCK_H 27